test: skip the test early if we're built without systemd-homed
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 31 May 2023 13:40:33 +0000 (15:40 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 31 May 2023 21:30:45 +0000 (06:30 +0900)
commit4c709f3908c85923f870c5b73e64e26cd7f57d0b
tree520083244b0a6eff907f3396703d2333ef0789f0
parent322bda8241e80e1bab8efa07db95c52e94a5ef19
test: skip the test early if we're built without systemd-homed

We check for homed stuff in the test itself, but this is way too late,
since we already started a unit that Requires=systemd-homed.service
(testsuite-46.service). For now this doesn't matter, but with #27852
the offending transaction is dropped from the job queue, making the test
fail.

Spotted in #27852 in Ubuntu CI.
test/TEST-46-HOMED/test.sh