mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
test/run-integration-tests: do not run the tests if only "clean" is passed
This commit is contained in:
parent
36f8cf0163
commit
abf6346c5e
|
@ -7,7 +7,7 @@ if [ $# -gt 0 ]; then
|
||||||
else
|
else
|
||||||
args="setup run clean-again"
|
args="setup run clean-again"
|
||||||
fi
|
fi
|
||||||
args_no_clean=$(sed -r 's/(^| )clean($| )/ /g' <<<$args)
|
args_no_clean=$(sed -r 's/\bclean\b//g' <<<$args)
|
||||||
do_clean=$( [ "$args" = "$args_no_clean" ]; echo $? )
|
do_clean=$( [ "$args" = "$args_no_clean" ]; echo $? )
|
||||||
|
|
||||||
ninja -C "$BUILD_DIR"
|
ninja -C "$BUILD_DIR"
|
||||||
|
@ -26,6 +26,8 @@ if [ $do_clean = 1 ]; then
|
||||||
for TEST in TEST-??-* ; do
|
for TEST in TEST-??-* ; do
|
||||||
( set -x ; make -C "$TEST" "BUILD_DIR=$BUILD_DIR" clean )
|
( set -x ; make -C "$TEST" "BUILD_DIR=$BUILD_DIR" clean )
|
||||||
done
|
done
|
||||||
|
|
||||||
|
[ -n "$args_no_clean" ] || exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pass_blacklist() {
|
pass_blacklist() {
|
||||||
|
|
Loading…
Reference in a new issue