PGW_Tests: f_start_prog_wait(): print more debugging info
Change-Id: I73314ccfdabd3860e15c732260b024f4c984bebf Related: SYS#5602
This commit is contained in:
parent
b46f01e130
commit
36ab797d46
|
@ -402,6 +402,7 @@ private function f_start_prog(charstring command) runs on PGW_Session_CT return
|
|||
run_as_user := mp_run_prog_as_user,
|
||||
tun_netns_name := g_pars.tun_netns_name
|
||||
};
|
||||
log("Starting a program: ", command);
|
||||
var UECUPS_StartProgramRes res := f_gtp2_start_program(sprog);
|
||||
if (res.result != OK) {
|
||||
setverdict(fail, "Unable to start program '", command, "'");
|
||||
|
@ -413,6 +414,7 @@ private function f_start_prog(charstring command) runs on PGW_Session_CT return
|
|||
private function f_wait_term(integer pid, template (present) integer exit_code := 0,
|
||||
float tout := 10.0) runs on PGW_Session_CT
|
||||
{
|
||||
var UECUPS_ProgramTermInd pti;
|
||||
timer T := tout;
|
||||
|
||||
T.start;
|
||||
|
@ -420,8 +422,8 @@ private function f_wait_term(integer pid, template (present) integer exit_code :
|
|||
[] GTP2.receive(UECUPS_ProgramTermInd:{pid := pid, exit_code := exit_code}) {
|
||||
setverdict(pass);
|
||||
}
|
||||
[] GTP2.receive(UECUPS_ProgramTermInd:?) {
|
||||
setverdict(fail, "Received unexpected ProgramTermInd");
|
||||
[] GTP2.receive(UECUPS_ProgramTermInd:?) -> value pti {
|
||||
setverdict(fail, "Received unexpected ProgramTermInd := ", pti);
|
||||
}
|
||||
[] T.timeout {
|
||||
setverdict(fail, "timeout waiting for user-plane program termination");
|
||||
|
|
Loading…
Reference in New Issue