1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

test/run-integration-tests: do not run the tests if only "clean" is passed

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-09-22 00:00:59 +02:00
parent 36f8cf0163
commit abf6346c5e

View File

@ -7,7 +7,7 @@ if [ $# -gt 0 ]; then
else
args="setup run clean-again"
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 $? )
ninja -C "$BUILD_DIR"
@ -26,6 +26,8 @@ if [ $do_clean = 1 ]; then
for TEST in TEST-??-* ; do
( set -x ; make -C "$TEST" "BUILD_DIR=$BUILD_DIR" clean )
done
[ -n "$args_no_clean" ] || exit 0
fi
pass_blacklist() {