Browse Source

Show only fails in actions, write full test log to disk

alexv-smirnov 2 years ago
parent
commit
25c0743a20
1 changed files with 5 additions and 2 deletions
  1. 5 2
      .github/workflows/build_and_test.yml

+ 5 - 2
.github/workflows/build_and_test.yml

@@ -30,5 +30,8 @@ jobs:
         rm -rf /mnt/d/tmp/*
         cd ../build/ydb
         # Our test util provides output with coloring, so remove it using sed before sending to grep
-        TMPDIR=/mnt/d/tmp ctest -j28 --timeout 1200 --force-new-ctest-process --output-on-failure | sed -e 's/\x1b\[[0-9;]*m//g' | grep -E "(Test\s*#|\[FAIL\])"
-      
+        TMPDIR=/mnt/d/tmp ctest -j28 --timeout 1200 --force-new-ctest-process --output-on-failure | \
+          sed -e 's/\x1b\[[0-9;]*m//g' | \
+          tee testrun.log | \
+          grep -E '(Test\s*#.*\*\*\*|\[FAIL\])|.*tests passed,.*tests failed out of'
+