test: skip fdstore tests if test-fdstore is not available

When the test suite is run in the "standalone" mode, the minimal
container might not contain the test-fdstore binary that's needed for a
couple of tests. Since installing systemd-tests into the minimal
container pulls in a lot of other dependencies, let's just skip the
affected tests instead to avoid this.
This commit is contained in:
Frantisek Sumsal
2026-06-23 23:04:47 +01:00
committed by Luca Boccassi
parent 1e8d527f68
commit 926bf65359
3 changed files with 30 additions and 17 deletions
@@ -24,4 +24,6 @@ elif [[ -x "$BUILDROOT/usr/lib/systemd/tests/unit-tests/manual/test-fdstore" ]];
cp "$BUILDROOT/usr/lib/systemd/tests/unit-tests/manual/test-fdstore" "$BUILDROOT/usr/bin/test-fdstore"
elif [[ -x /usr/lib/systemd/tests/unit-tests/manual/test-fdstore ]]; then
cp /usr/lib/systemd/tests/unit-tests/manual/test-fdstore "$BUILDROOT/usr/bin/test-fdstore"
else
echo >&2 "WARNING: test-fdstore binary not found, fdstore container tests will be skipped"
fi