integration tests: do not adjust log level in the test script
We passes log level through kernel command line. It is not necessary to set to debug level at the beginning, and set to info at the end. This is important when a test has several subtests. If a subtest sets log level to info at the end, then subsequent tests may not generate any useful logs.
This commit is contained in:
@@ -5,8 +5,6 @@ set -o pipefail
|
||||
|
||||
# Test ExecReload= (PR #13098)
|
||||
|
||||
systemd-analyze log-level debug
|
||||
|
||||
export SYSTEMD_PAGER=
|
||||
SERVICE_PATH="$(mktemp /etc/systemd/system/execreloadXXX.service)"
|
||||
SERVICE_NAME="${SERVICE_PATH##*/}"
|
||||
@@ -57,5 +55,3 @@ systemctl status "$SERVICE_NAME"
|
||||
systemctl reload "$SERVICE_NAME"
|
||||
systemctl status "$SERVICE_NAME"
|
||||
systemctl stop "$SERVICE_NAME"
|
||||
|
||||
systemd-analyze log-level info
|
||||
|
||||
Reference in New Issue
Block a user