summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-06-26 17:53:24 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2022-06-26 17:53:24 -0400
commit811ecc90963b7ffcbb51f3fc82c880f5a5550131 (patch)
tree0592abf433313f435a5db78b0eca4a50eb5953c1 /lib
parent52d972610953cc448d505e72a0635cc15fd50918 (diff)
Set per-test watchdog for some bcachefs tests
This will help stuck tests timeout quicker Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'lib')
-rwxr-xr-xlib/testrunner6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/testrunner b/lib/testrunner
index d0114d8..1197eaf 100755
--- a/lib/testrunner
+++ b/lib/testrunner
@@ -250,7 +250,6 @@ if [[ $tests = "none" ]]; then
exit 0
fi
-
# For now, timeouts/watchdogs are only handled in lib/qemu-wrapper.c:
#if [[ $ktest_exit_on_success = 0 && $ktest_interactive = 0 ]]; then
@@ -261,6 +260,11 @@ fi
# ) &
#fi
+set_watchdog()
+{
+ echo WATCHDOG $1
+}
+
trap 'pkill -P $$ >/dev/null' EXIT
cd /root