diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2022-01-05 12:06:52 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-01-07 15:53:20 +0100 |
commit | 3af61b9224904370826423309759856a1e6257b6 (patch) | |
tree | cacdc023888e62b3b2fc3e2512ebfe05b57ed882 | |
parent | c86461782f65106f22224616eb7b7d20fb741ad7 (diff) | |
download | systemd-3af61b9224904370826423309759856a1e6257b6.tar.gz |
test: use full date & time when checking for coredumps
Otherwise we might hit a window where the coredump happens before
midnight, but we check for it after midnight, which yields no results.
E.g.:
```
$ coredumpctl --no-legend --no-pager --file system.journal
Wed 2022-01-05 01:00:06 CET 359 0 0 SIGABRT journal /usr/bin/udevadm n/a
$ coredumpctl --since 23:59:55 --no-legend --no-pager --file system.journal
No coredumps found.
$ coredumpctl --since "2022-01-04 23:59:59" --no-legend --no-pager --file system.journal
Wed 2022-01-05 01:00:06 CET 359 0 0 SIGABRT journal /usr/bin/udevadm n/a
```
(cherry picked from commit 1b51599f29d245f2214349498bf2c1f0aa36873f)
-rwxr-xr-x | test/units/testsuite-17.03.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/units/testsuite-17.03.sh b/test/units/testsuite-17.03.sh index fecfd17952..91f0211bca 100755 --- a/test/units/testsuite-17.03.sh +++ b/test/units/testsuite-17.03.sh @@ -26,7 +26,7 @@ teardown() { } run_test() { - since="$(date +%T)" + since="$(date '+%F %T')" SYSTEMD_LOG_LEVEL=debug udevadm trigger --verbose --settle --action add /dev/null |