]> git.ipfire.org Git - thirdparty/util-linux.git/commit
util-linux/sys-utils test dmesg support for additional human-readable timestamp
authorRishabh Thukral <rthukral@arista.com>
Sat, 23 Dec 2023 23:13:36 +0000 (15:13 -0800)
committerRishabh Thukral <rthukral@arista.com>
Sat, 23 Dec 2023 23:13:36 +0000 (15:13 -0800)
commit0570359146621b6086afe0e0faaf9e222c3f0697
treef0491fa886016db624069e9c6d3af705b8321f1a
parent423ed6e6eb0d064a54a95ba4c067f13fcef6f791
util-linux/sys-utils test dmesg support for additional human-readable timestamp

This commit adds tests for new functionality in dmesg to support multiple timestamp formats.
The user can specify multiple timestamp formats with --time-format option and dmesg prints all the logs with desired timestamp formats in the sequence of user-provided formats.

This test verifies that output contains multiple formats in the sequence of input and it also tests for the special case where the user specifies delta format along with either ctime or raw.

Signed-off-by: Rishabh Thukral <rthukral@arista.com>
tests/expected/dmesg/timestamp-format [new file with mode: 0644]
tests/ts/dmesg/timestamp-format [new file with mode: 0755]