| |
@@ -167,7 +167,7 @@
|
| |
if [ -f "$STR_BKR_TEST" ]; then
|
| |
debug "Running test from file: $STR_BKR_TEST"
|
| |
cd $(dirname "$STR_BKR_TEST")
|
| |
- timeout "$STR_TIMEOUT" /bin/sh -e ./$(basename "$STR_BKR_TEST")
|
| |
+ timeout --foreground "$STR_TIMEOUT" /bin/sh -e ./$(basename "$STR_BKR_TEST")
|
| |
exit
|
| |
fi
|
| |
|
| |
@@ -178,10 +178,10 @@
|
| |
get-test-deps -i .
|
| |
if [ -f "Makefile" ] && command -p -v "make" >"/dev/null" 2>&1; then
|
| |
debug "Running test from Makefile"
|
| |
- timeout "$STR_TIMEOUT" make run
|
| |
+ timeout --foreground "$STR_TIMEOUT" make run
|
| |
elif [ -f "runtest.sh" ]; then
|
| |
debug "Running test from runtest.sh"
|
| |
- timeout "$STR_TIMEOUT" /bin/sh -e ./runtest.sh
|
| |
+ timeout --foreground "$STR_TIMEOUT" /bin/sh -e ./runtest.sh
|
| |
else
|
| |
echo "FAIL test $STR_BKR_TEST do not know how to run test"
|
| |
fi
|
| |
we need to run timeout with --foreground to be support tests that use interactive shell
Also added test to make sure tests that use timeout cmdline also work