From dac3c2dd38778364059b734627b47d9fc497f9b0 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 11 Jan 2017 11:58:37 -0800 Subject: [PATCH] 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. --- tests/_collect_data.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/_collect_data.pm b/tests/_collect_data.pm index e9f7027f..3ad42c1e 100644 --- a/tests/_collect_data.pm +++ b/tests/_collect_data.pm @@ -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'; }