mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-29 18:02:35 +00:00
lf_testmod: Make sure settings are flushed.
Utils: Add option to doCmd to allow waiting for arbitrary text, that way we can ignore intervening 'RSLT' lines when doing batched cmds.
This commit is contained in:
@@ -183,8 +183,18 @@ elsif ($::action eq "set") {
|
||||
}
|
||||
|
||||
$cmd = "add_text_blob '$test_type' '$test_name' $ln";
|
||||
$::utils->doCmd($cmd, 1); # send and do not wait for result
|
||||
print("$cmd\n");
|
||||
if ($i % 25 == 0) {
|
||||
$::utils->doCmd($cmd, 1); # send and do not wait for result
|
||||
}
|
||||
else {
|
||||
$::utils->doCmd($cmd); # send and wait for result
|
||||
}
|
||||
}
|
||||
|
||||
# Wait until we complete processing of all cmds.
|
||||
$cmd = "gossip __gossip_test__";
|
||||
$::utils->doCmd($cmd, 0, "/__gossip_test__/");
|
||||
}
|
||||
else {
|
||||
die("Unknown action: $::action\n$::usage\n");
|
||||
|
||||
Reference in New Issue
Block a user