summaryrefslogtreecommitdiffstats
path: root/test/TEST-46-HOMED
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-06-02 21:10:08 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-06-05 16:50:13 +0200
commit70bdf6e661f67dfbfd6a198f7d1ebc6fdf0dce62 (patch)
tree87f5fc76ee5da8bfac09ad464f30ddafec89cd40 /test/TEST-46-HOMED
parenttest: fix indentation (diff)
downloadsystemd-70bdf6e661f67dfbfd6a198f7d1ebc6fdf0dce62.tar.xz
systemd-70bdf6e661f67dfbfd6a198f7d1ebc6fdf0dce62.zip
test: introduce test_require_bin() and use it
No functional change.
Diffstat (limited to 'test/TEST-46-HOMED')
-rwxr-xr-xtest/TEST-46-HOMED/test.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/TEST-46-HOMED/test.sh b/test/TEST-46-HOMED/test.sh
index 0daf211103..3bf3891380 100755
--- a/test/TEST-46-HOMED/test.sh
+++ b/test/TEST-46-HOMED/test.sh
@@ -11,10 +11,7 @@ TEST_DESCRIPTION="testing homed"
. "${TEST_BASE_DIR:?}/test-functions"
get_bool "${NO_BUILD:-}" && HOMECTL_BIN="homectl" || HOMECTL_BIN="${BUILD_DIR:?}/homectl"
-if ! command -v "$HOMECTL_BIN" >/dev/null; then
- echo "Built without systemd-homed, skipping the test"
- exit 0
-fi
+test_require_bin "$HOMECTL_BIN"
# Need loop devices for mounting images
test_append_files() {