bscnat: Move generic code to wait for test into its own function
Change-Id: Ia95ec02d7ca631e037abfbcfc7881b57e37aef5b
This commit is contained in:
parent
579cd7a406
commit
bdcfe03ed4
|
@ -163,12 +163,8 @@ function f_init(boolean use_osmux) runs on test_CT {
|
|||
|
||||
}
|
||||
|
||||
function f_TC_recv_dump(boolean use_osmux := false) runs on test_CT {
|
||||
function f_wait_finish(timer T) runs on test_CT {
|
||||
var integer i;
|
||||
timer T := 30.0;
|
||||
|
||||
f_init(use_osmux);
|
||||
|
||||
alt {
|
||||
/* wait for BSC to stop. The idea is that the BSC components terminate first */
|
||||
[] bsc[0].BSC.done { }
|
||||
|
@ -182,6 +178,15 @@ function f_TC_recv_dump(boolean use_osmux := false) runs on test_CT {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function f_TC_recv_dump(boolean use_osmux := false) runs on test_CT {
|
||||
timer T := 30.0;
|
||||
|
||||
f_init(use_osmux);
|
||||
|
||||
f_wait_finish(T);
|
||||
}
|
||||
|
||||
testcase TC_recv_dump() runs on test_CT {
|
||||
f_TC_recv_dump();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue