1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-25 15:23:08 +00:00

Tweak _collect_data services collection grep

When there's a failed service we get a stupid bullet-point char
at the start of its line, and all the other lines are space-
padded to match indentation. Which is annoying! This (I hope)
ditches that crap without losing anything of value.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-03-05 08:28:31 -08:00
parent 85b71c809f
commit db3f6c1b02

View File

@ -15,7 +15,7 @@ sub run {
upload_logs '/var/tmp/free.log'; upload_logs '/var/tmp/free.log';
assert_script_run 'df > /var/tmp/df.log'; assert_script_run 'df > /var/tmp/df.log';
upload_logs '/var/tmp/df.log'; upload_logs '/var/tmp/df.log';
assert_script_run 'systemctl -t service --no-pager --no-legend | grep -o ".*\.service" > /var/tmp/services.log'; assert_script_run 'systemctl -t service --no-pager --no-legend | grep -o "[[:graph:]]*\.service" > /var/tmp/services.log';
upload_logs '/var/tmp/services.log'; upload_logs '/var/tmp/services.log';
} }