test: wait for unit generated from /proc/self/mountinfo to be unloaded
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 May 2024 19:48:42 +0000 (04:48 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 21 May 2024 14:09:38 +0000 (23:09 +0900)
commit4a8ca3c6d595598f64cf532fad2c98ef7481f6a4
tree4147dcb17584b4d555395862da379bba5e06ee6c
parentee213b54ae8141f076c8e43d9c79d604fa679060
test: wait for unit generated from /proc/self/mountinfo to be unloaded

Fixes https://github.com/systemd/systemd/issues/32680#issuecomment-2120974685.
===
May 21 02:45:08 TEST-74-AUX-UTILS.sh[2475]: + mountpoint /tmp/tmp.eaRV7lSbX2/mnt
May 21 02:45:08 TEST-74-AUX-UTILS.sh[2476]: /tmp/tmp.eaRV7lSbX2/mnt is not a mountpoint
May 21 02:45:08 TEST-74-AUX-UTILS.sh[2449]: + systemd-mount /dev/loop0 /tmp/tmp.eaRV7lSbX2/mnt
May 21 02:45:08 systemd-mount[2477]: Failed to start transient mount unit: Unit tmp-tmp.eaRV7lSbX2-mnt.mount was already loaded or has a fragment file.
===
test/units/TEST-74-AUX-UTILS.mount.sh