From 1b3f2fba0f3e65d15e711a559e06a80d96efe764 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 9 Mar 2021 16:15:50 +0100 Subject: [PATCH] Did I break everything again ? You can't prove it! --- lib/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests.sh b/lib/tests.sh index fba5cf8..e2a7934 100644 --- a/lib/tests.sh +++ b/lib/tests.sh @@ -251,7 +251,7 @@ Page extract:\n$page_extract" > $TEST_CONTEXT/curl_result if [[ $curl_error -ne 0 ]] && echo "5" | grep -q "${http_code:0:1}" then LXC_EXEC "systemctl" | grep "$app_id_to_check.*service" - for SERVICE in LXC_EXEC "systemctl" | grep "$app_id_to_check.*service" | awk '{print $1}' + for SERVICE in $(LXC_EXEC "systemctl" | grep "$app_id_to_check.*service" | awk '{print $1}') do LXC_EXEC "journalctl --no-pager --no-hostname -n 30 -u $SERVICE"; done