mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
tests: Fix 'unexpected exit' detection in parallel-vm.py
Now that parallel-vm.py is actually stopping VMs as soon as they are not
needed for retries, it is not really an unexpected exit to see a VM exit
while test cases remain in the queue as long as at least that many VMs
remain running. Get rid of confusing 'unexpected exit' status from the
UI in such cases.
Fixes: 4aaddecdd8
("tests: Handle test retries through the same queue")
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
81121319a9
commit
9dc07a1d55
@ -196,9 +196,14 @@ def show_progress(scr):
|
|||||||
logger.info("VM[%d] kernel panic" % i)
|
logger.info("VM[%d] kernel panic" % i)
|
||||||
updated = True
|
updated = True
|
||||||
if test_queue:
|
if test_queue:
|
||||||
scr.addstr("unexpected exit")
|
num_vm = 0
|
||||||
logger.info("VM[%d] unexpected exit" % i)
|
for i in range(num_servers):
|
||||||
updated = True
|
if vm[i]['proc']:
|
||||||
|
num_vm += 1
|
||||||
|
if len(test_queue) > num_vm:
|
||||||
|
scr.addstr("unexpected exit")
|
||||||
|
logger.info("VM[%d] unexpected exit" % i)
|
||||||
|
updated = True
|
||||||
continue
|
continue
|
||||||
|
|
||||||
running = True
|
running = True
|
||||||
|
Loading…
Reference in New Issue
Block a user