]> git.ipfire.org Git - thirdparty/systemd.git/commit
TEST-17-UDEV: rotate journal before checking
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Aug 2025 03:03:03 +0000 (12:03 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 13 Aug 2025 08:36:35 +0000 (09:36 +0100)
commit5e4115e59e25fc2eeb31c8f47c3ce1b59835f215
tree16eee414e814c625b2a6012caa601fd7b9933422
parent998bb9600e3e3d5f2db93508a69657e197e7f5b7
TEST-17-UDEV: rotate journal before checking

Otherwise, journal files may be rotated during checking journal entries
and the main system journal file may not be loaded:
```
[  350.372652] TEST-17-UDEV.sh[5841]: + test b253:2 = b253:2
[  350.373288] TEST-17-UDEV.sh[5841]: + [[ 1 == \1 ]]
[  350.373722] TEST-17-UDEV.sh[5841]: + journalctl -n 1 -q -u systemd-udevd.service --invocation=0 --grep 'Found inotify watch .*457'
[  350.374534] TEST-17-UDEV.sh[5970]: Journal file /run/log/journal/edc1fb58daff00ad89d6c8d9689bf172/system.journal is truncated, ignoring file.
[  350.375415] TEST-17-UDEV.sh[415]: + echo 'Subtest /usr/lib/systemd/tests/testdata/units/TEST-17-UDEV.watch.sh failed'
```

Fixes #38559.
test/units/TEST-17-UDEV.watch.sh