]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-58: exit immediately if systemd-repart is not available
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 21 Apr 2021 21:37:57 +0000 (23:37 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 23 Apr 2021 13:12:38 +0000 (15:12 +0200)
Debian disables systemd-repart at config time.

test/units/testsuite-58.sh

index 21ad7d5da2101b33fbec9c0a1f5db061357b761f..13f02f01e3212dd9778b979f95de24615b37928f 100755 (executable)
@@ -2,6 +2,11 @@
 set -eux
 set -o pipefail
 
+if ! command -v systemd-repart &>/dev/null; then
+    echo "no systemd-repart" >/skipped
+    exit 0
+fi
+
 export SYSTEMD_LOG_LEVEL=debug
 export PAGER=cat