]> git.ipfire.org Git - thirdparty/systemd.git/commit
test/test-shutdown.py: optionally display the test I/Os in a dedicated log file 31271/head
authorFranck Bui <fbui@suse.com>
Thu, 8 Feb 2024 15:12:41 +0000 (16:12 +0100)
committerFranck Bui <fbui@suse.com>
Mon, 12 Feb 2024 15:57:51 +0000 (16:57 +0100)
commitcf14d1144717967ebdd150cb21ed5dc00e832a80
treef7b97bed190e98ae7c3803a075e84c62021c0cc9
parent14265c3360b02191975654981715584227c0650e
test/test-shutdown.py: optionally display the test I/Os in a dedicated log file

Given that the test involves screen(1), sending various control sequences to
resize/clear the screen, most of the logs sent from the python script were
nearly impossible to read or mixed with other messages sent to the console
hence making the debug harder when the test is run manually.

This patch introduces an option to redirect the pexpect IOs into a file (to be
used in $STATEDIR/TEST-69-SHUTDOWN/run-nspawn).

The pexpect logs are also enabled later so the boot logs are skipped since
those are already included in the journal.
test/test-shutdown.py