1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

run-gnu-test.sh: accept "run-root" as first param

This commit is contained in:
Daniel Hofstetter 2023-09-26 09:33:14 +02:00
parent 5fde331c8f
commit 22f72544a8

View file

@ -29,7 +29,8 @@ cd "${path_GNU}" && echo "[ pwd:'${PWD}' ]"
export RUST_BACKTRACE=1 export RUST_BACKTRACE=1
if test $# -ge 1; then if test "$1" != "run-root"; then
if test $# -ge 1; then
# if set, run only the tests passed # if set, run only the tests passed
SPECIFIC_TESTS="" SPECIFIC_TESTS=""
for t in "$@"; do for t in "$@"; do
@ -48,6 +49,7 @@ if test $# -ge 1; then
# trim it # trim it
SPECIFIC_TESTS=$(echo $SPECIFIC_TESTS | xargs) SPECIFIC_TESTS=$(echo $SPECIFIC_TESTS | xargs)
echo "Running specific tests: $SPECIFIC_TESTS" echo "Running specific tests: $SPECIFIC_TESTS"
fi
fi fi
# * timeout used to kill occasionally errant/"stuck" processes (note: 'release' testing takes ~1 hour; 'debug' testing takes ~2.5 hours) # * timeout used to kill occasionally errant/"stuck" processes (note: 'release' testing takes ~1 hour; 'debug' testing takes ~2.5 hours)