File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,14 @@ runs:
15
15
warn="\e[0;33m"
16
16
while [ $counter -lt 6 ]
17
17
do
18
+ # run test and forward output also to a file in addition to stdout (tee command)
18
19
if [ $filter ]
19
20
then
20
21
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
21
25
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
24
26
# capture dotnet test exit status, different from tee
25
27
exitcode=${PIPESTATUS[0]}
26
28
if [ $exitcode == 0 ]
You can’t perform that action at this time.
0 commit comments