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:
parent
ded65775a2
commit
2535f23dd8
@ -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--"
|
||||
|
Loading…
Reference in New Issue
Block a user