[PATCH 08/11] cr_tests: Cleanup more stuff after futex/run.sh runs.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <matthltc@xxxxxxxxxx>
Cc: containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
---
 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
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux