[Devel] [PATCH 08/11] cr_tests: Cleanup more stuff after futex/run.sh runs.
Matt Helsley
matthltc at us.ibm.com
Wed Aug 19 21:58:11 PDT 2009
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 at us.ibm.com>
Cc: containers at lists.linux-foundation.org
---
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 at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list