In this case, wait for any running tasks to complete before going onto
the next iteration of the test loop and remove the checkpoint-ready and
checkpoint-done files after the loop.

Signed-off-by: Matt Helsley <[email protected]>
Cc: [email protected]
---
 futex/run.sh |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/futex/run.sh b/futex/run.sh
index 5587520..0e0b2eb 100755
--- a/futex/run.sh
+++ b/futex/run.sh
@@ -100,10 +100,13 @@ while [ $CURTEST -lt $NUMTESTS ]; do
        echo PASS
        trap '' ERR EXIT
        CURTEST=$((CURTEST+1))
+
+       # Wait for restarted tasks to complete.
+       wait
 done
 trap '' ERR EXIT
 
-#rm -f ./checkpoint-*
+rm -f ./checkpoint-{ready,done}
 
 # rmdir /cg/1
 # umount /cg
-- 
1.5.6.3


_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to