From 0b3b02b4986e37605619d7ff5d6d6b5d483154f0 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Tue, 25 May 2021 17:26:07 +0200 Subject: [PATCH] log file fixes --- ci/safe-earthly-test-all.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ci/safe-earthly-test-all.sh b/ci/safe-earthly-test-all.sh index 05696fe62c..2b1abaee97 100755 --- a/ci/safe-earthly-test-all.sh +++ b/ci/safe-earthly-test-all.sh @@ -1,10 +1,11 @@ #!/usr/bin/env bash -LOG_FILE="earthly_err.txt" +LOG_FILE="earthly_log.txt" +touch $LOG_FILE -script -efq output.log -c "earthly +test-all" +script -efq $LOG_FILE -c "earthly --buildkit-cache-size-mb 25000 +test-all" -if grep -q "unexpected closing delimiter" "$LOG_FILE"; then +if grep -q "failed to mount" "$LOG_FILE"; then echo "" echo "" echo "------<<<<<>>>>>------" @@ -12,7 +13,7 @@ if grep -q "unexpected closing delimiter" "$LOG_FILE"; then echo "------<<<<<>>>>>------" echo "" echo "" - earthly --no-cache +test-all + earthly --no-cache --buildkit-cache-size-mb 25000 +test-all else - cat $ERR_FILE + return 1 fi