Use systemctl --no-legend
when collecting service info
Without this, when there are failed services, we get an extra column to the left of the service names with a unicode dot for each failed service, which is awkward and screws up the parsing.
This commit is contained in:
parent
0b147e169c
commit
dac3c2dd38
@ -13,7 +13,7 @@ sub run {
|
||||
upload_logs '/var/tmp/free.log';
|
||||
assert_script_run 'df > /var/tmp/df.log';
|
||||
upload_logs '/var/tmp/df.log';
|
||||
assert_script_run 'systemctl -t service --no-pager |grep -o ".*\.service" > /var/tmp/services.log';
|
||||
assert_script_run 'systemctl -t service --no-pager --no-legend | grep -o ".*\.service" > /var/tmp/services.log';
|
||||
upload_logs '/var/tmp/services.log';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user