1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

run-integration-test: allow argument to be overriden

This is useful for "sudo test/run-integration-tests.sh clean".
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-12-06 15:13:02 +01:00
parent ded65775a2
commit 2535f23dd8

View File

@ -1,6 +1,11 @@
#!/bin/bash -e
BUILD_DIR="$($(dirname "$0")/../tools/find-build-dir.sh)"
if [ $# -gt 0 ]; then
args="$@"
else
args="clean setup run"
fi
ninja -C "$BUILD_DIR"
@ -13,7 +18,7 @@ cd "$(dirname "$0")"
for TEST in TEST-??-* ; do
echo -e "\n--x-- Starting $TEST --x--"
set +e
make -C "$TEST" "BUILD_DIR=$BUILD_DIR" clean setup run
make -C "$TEST" "BUILD_DIR=$BUILD_DIR" $args
RESULT=$?
set -e
echo "--x-- Result of $TEST: $RESULT --x--"