diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-06-02 21:10:08 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-06-05 16:50:13 +0200 |
commit | 70bdf6e661f67dfbfd6a198f7d1ebc6fdf0dce62 (patch) | |
tree | 87f5fc76ee5da8bfac09ad464f30ddafec89cd40 /test/TEST-46-HOMED | |
parent | test: fix indentation (diff) | |
download | systemd-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-x | test/TEST-46-HOMED/test.sh | 5 |
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() { |