8000 Fix initial test run without filter · devlooped/oss@9a1b075 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 9a1b075

Browse files
authored
Fix initial test run without filter
The dotnet test tool started failing at some point when passing an empty filter
1 parent fca55bc commit 9a1b075

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ runs:
1515
warn="\e[0;33m"
1616
while [ $counter -lt 6 ]
1717
do
18+
# run test and forward output also to a file in addition to stdout (tee command)
1819
if [ $filter ]
1920
then
2021
echo -e "${warn}Retry $counter for $filter ${reset}"
22+
dotnet test --no-build -m:1 --blame-hang --blame-hang-timeout 5m --filter=$filter | tee ./output.log
23+
else
24+
dotnet test --no-build -m:1 --blame-hang --blame-hang-timeout 5m | tee ./output.log
2125
fi
22-
# run test and forward output also to a file in addition to stdout (tee command)
23-
dotnet test --no-build -m:1 --blame-hang --blame-hang-timeout 5m --filter=$filter | tee ./output.log
2426
# capture dotnet test exit status, different from tee
2527
exitcode=${PIPESTATUS[0]}
2628
if [ $exitcode == 0 ]

0 commit comments

Comments
 (0)
0