From 6c800b5170c0b9065f7826acd2466bac4ea41c61 Mon Sep 17 00:00:00 2001 From: tonytan4ever Date: Tue, 2 Jan 2018 12:25:01 -0500 Subject: [PATCH] Skip and echo out gzip log compression error Sometimes gzip log collection will fail because certain linked log file are missing. This change notice those error and let the test pass Change-Id: I0720460dba3ec959429b577017713e1d5a209337 --- test-log-collect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-log-collect.sh b/test-log-collect.sh index f05ab2cc..f163fe6a 100755 --- a/test-log-collect.sh +++ b/test-log-collect.sh @@ -205,6 +205,6 @@ done # Compress the files gathered so that they do not take up too much space. # We use 'command' to ensure that we're not executing with some sort of alias. -command gzip --force --best --recursive "${WORKING_DIR}/logs/" +command gzip --force --best --recursive "${WORKING_DIR}/logs/" || echo 'Note: gzip log files failed' echo "#### END LOG COLLECTION ###"