From 4c5617b03f7857cec6cfd788cd75a16ddeba85bc Mon Sep 17 00:00:00 2001 From: Darioush Jalali Date: Mon, 28 Oct 2024 07:59:24 -0700 Subject: [PATCH] ci: fix windows flake test detection (#677) --- scripts/build_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_test.sh b/scripts/build_test.sh index 460ebcd564..c3fb241349 100755 --- a/scripts/build_test.sh +++ b/scripts/build_test.sh @@ -41,7 +41,7 @@ do unexpected_failures=$( # First grep pattern corresponds to test failures, second pattern corresponds to test panics due to timeouts (grep "^--- FAIL" test.out | awk '{print $3}' || grep -E '^\s+Test.+ \(' test.out | awk '{print $1}') | - sort -u | comm -23 - ./scripts/known_flakes.txt + sort -u | comm -23 - <(sed 's/\r$//' ./scripts/known_flakes.txt) ) if [ -n "${unexpected_failures}" ]; then echo "Unexpected test failures: ${unexpected_failures}"