check: add flag file to stop running xfstests
RFC PATCH 1/1 check: add flag file to stop running xfstests
Check if file /tmp/.stopxfstests exists after every case, break and report if positive.
This could gentlely end a xfstests run, instead of killing processes around.
--- check | 9 +++++++++ 1 file changed, 9 insertions(+)
check +9 -0
@@ -472,6 +472,7 @@ else trap "_wrapup; exit \$status" 0 1 2 3 15 fi +rm -f /tmp/.stopxfstests for section in $HOST_OPTIONS_SECTIONS; do OLD_FSTYP=$FSTYP OLD_MOUNT_OPTIONS=$MOUNT_OPTIONS
@@ -595,6 +596,14 @@ for section in $HOST_OPTIONS_SECTIONS; do for seq in $list do + if [ -e /tmp/.stopxfstests ] ; then + _wrapup + echo "WARN: This is an interruptted run." + echo + _test_unmount 2> /dev/null + _scratch_unmount 2> /dev/null + break 2 + fi err=false if [ ! -f $seq ]; then # Try to get full name in case the user supplied only seq id
Signature · 1 line
1.8.3.1
Quoted 24 lines · Xiong Zhou
Check if file
/tmp/.stopxfstestsexists after every case, break and report if positive.This could gentlely end a xfstests run, instead of killing processes around.
Signed-off-by Xiong Zhou <[email protected]>--- check | 9 +++++++++ 1 file changed, 9 insertions(+)check +1
-0@@ -472,6 +472,7 @@ else trap "_wrapup; exit \$status" 0 1 2 3 15 fi +rm -f /tmp/.stopxfstests for section in $HOST_OPTIONS_SECTIONS; do OLD_FSTYP=$FSTYP OLD_MOUNT_OPTIONS=$MOUNT_OPTIONS
check for section in $HOST_OPTIONS_SECTIONS; do · line 601
Quoted 6 lines
check +3
-0@@ -595,6 +596,14 @@ for section in $HOST_OPTIONS_SECTIONS; do for seq in $list do + if [ -e /tmp/.stopxfstests ] ; then + _wrapup + echo "WARN: This is an interruptted run."
"interrupted"
And, uh, why do we need the ability to programmatically kill xfstests?
check for section in $HOST_OPTIONS_SECTIONS; do · line 605
Quoted 4 lines
check +4
-0+ echo + _test_unmount 2> /dev/null + _scratch_unmount 2> /dev/null + break 2
Weird indentation...?
--D
Quoted 11 lines
check +1
-0+ fi err=false if [ ! -f $seq ]; then # Try to get full name in case the user supplied only seq idSignature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 34 lines · Darrick J. Wong
Quoted 24 lines · Xiong Zhou
Check if file
/tmp/.stopxfstestsexists after every case, break and report if positive.This could gentlely end a xfstests run, instead of killing processes around.
Signed-off-by Xiong Zhou <[email protected]>--- check | 9 +++++++++ 1 file changed, 9 insertions(+)check +1
-0@@ -472,6 +472,7 @@ else trap "_wrapup; exit \$status" 0 1 2 3 15 fi +rm -f /tmp/.stopxfstests for section in $HOST_OPTIONS_SECTIONS; do OLD_FSTYP=$FSTYP OLD_MOUNT_OPTIONS=$MOUNT_OPTIONScheck for section in $HOST_OPTIONS_SECTIONS; do · line 601
Quoted 6 lines
check +3
-0@@ -595,6 +596,14 @@ for section in $HOST_OPTIONS_SECTIONS; do for seq in $list do + if [ -e /tmp/.stopxfstests ] ; then + _wrapup + echo "WARN: This is an interruptted run.""interrupted"
Quoted 1 line
And, uh, why do we need the ability to programmatically kill xfstests?
Forget it, it's from one of my weird need.
Sometimes I wanna end a running xfstests started by cron, peacefully.
Quoted 7 lines
check for section in $HOST_OPTIONS_SECTIONS; do · line 605
Quoted 5 lines
check +4
-0+ echo + _test_unmount 2> /dev/null + _scratch_unmount 2> /dev/null + break 2Weird indentation...?
Good catch.
Thanks,
Xiong
Quoted 18 lines
--D
Quoted 11 lines
check +1
-0+ fi err=false if [ ! -f $seq ]; then # Try to get full name in case the user supplied only seq idSignature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html