summaryrefslogtreecommitdiffstats
path: root/test/run-integration-tests.sh
diff options
context:
space:
mode:
authorBalint Reczey <balint.reczey@canonical.com>2021-05-10 20:46:37 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2021-05-17 15:16:09 +0200
commit39f1bdecc20daae6a659a24408914b78bd65e423 (patch)
treebd721cc1a9be0a96cf7af1b195f7d4f73837f2b6 /test/run-integration-tests.sh
parentmkosi: stop pulling in workaround packages (diff)
downloadsystemd-39f1bdecc20daae6a659a24408914b78bd65e423.tar.xz
systemd-39f1bdecc20daae6a659a24408914b78bd65e423.zip
test: Allow running only a subset of integration tests by setting SELECTED_TESTS
Diffstat (limited to 'test/run-integration-tests.sh')
-rwxr-xr-xtest/run-integration-tests.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/run-integration-tests.sh b/test/run-integration-tests.sh
index 036c075eef..47cf8a8912 100755
--- a/test/run-integration-tests.sh
+++ b/test/run-integration-tests.sh
@@ -60,17 +60,19 @@ pass_deny_list() {
return 0
}
+SELECTED_TESTS="${SELECTED_TESTS:-TEST-??-*}"
+
# Let's always do the cleaning operation first, because it destroys the image
# cache.
if [ $CLEAN = 1 ]; then
- for TEST in TEST-??-* ; do
+ for TEST in $SELECTED_TESTS; do
( set -x ; make -C "$TEST" clean )
done
fi
# Run actual tests (if requested)
if [[ $args =~ [a-z] ]]; then
- for TEST in TEST-??-* ; do
+ for TEST in $SELECTED_TESTS; do
COUNT=$(($COUNT+1))
pass_deny_list $TEST || continue