From 432b0384ff57dd141d5c18563c942c938269fcb7 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Tue, 19 Dec 2023 22:55:56 +0100 Subject: [PATCH] fix Sanity test output capture --- .github/workflows/pr.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a33a3588c..cdf338458 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -37,7 +37,7 @@ jobs: cmd="ansible-lint --parseable --nocolor --profile=shared" # don't want to annotate through GHA unset GITHUB_ACTIONS - $cmd > branch.output || echo "Branch linting output written" + $cmd | tee branch.output || echo "Branch linting output written" git checkout main $cmd > main.output || echo "Main linting output written" export GITHUB_ACTIONS=true @@ -89,11 +89,11 @@ jobs: git fetch --unshallow origin main for version in 3.6 3.7 3.8 3.9 ; do ansible-test sanity --verbose --docker --python $version --color --coverage --failure-ok - done 2>&1 | tee branch.output + done 2>&1 | tee -a branch.output git checkout main for version in 3.6 3.7 3.8 3.9 ; do ansible-test sanity --verbose --docker --python $version --color --coverage --failure-ok - done > main.output 2>&1 + done >> main.output 2>&1 for key in branch main; do grep -E "(ERROR|FATAL):" "$key.output" | grep -v "issue(s) which need to be resolved\|See error output above for details." |