test: reorder the machinectl signal tests
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 10 Jul 2023 08:39:00 +0000 (10:39 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 10 Jul 2023 14:26:32 +0000 (15:26 +0100)
commitfab73dad84372f48ee84894323fe4f09d810e7f6
treeba37fe4e9c7649ed5196f6279a858f236c329713
parentdb1264a811128cd640ed0b2cc20794932fda90bf
test: reorder the machinectl signal tests

So the multiple-machines tests run last to avoid a race where the
checked signal would get ignored while the stub init is still processing
the previous signals:

[   17.380417] testsuite-13.sh[376]: + machinectl reboot long-running long-running long-running
[   17.389888] systemd-nspawn[495]: ++ touch /reboot
[   17.390904] testsuite-13.sh[376]: + rm -f /var/lib/machines/long-running/trap
[   17.393937] testsuite-13.sh[376]: + machinectl kill --signal=SIGTRAP --kill-whom=leader long-running
[   17.408905] testsuite-13.sh[376]: + timeout 10 bash -c 'while ! test -e /var/lib/machines/long-running/trap; do sleep .5; done'
[   27.413210] testsuite-13.sh[376]: + at_exit
...
[   27.993376] testsuite-13.sh[373]: + echo 'Subtest /usr/lib/systemd/tests/testdata/units/testsuite-13.machinectl.sh failed'
test/units/testsuite-13.machinectl.sh