File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,10 @@ if not errorlevel 1 (
40
40
set exit_code = 0
41
41
42
42
set NONQUARANTINE_FILTER = " Flaky:All!=true&Flaky:Helix:All ! =true&Flaky:Helix:Queue:All!=true&Flaky:Helix:Queue: %HELIX% ! =true"
43
+ set QUARANTINE_FILTER = " Flaky:All=true|Flaky:Helix:All=true|Flaky:Helix:Queue:All=true|Flaky:Helix:Queue:%HELIX% =true"
43
44
if (%quarantined% == true) (
44
45
echo Running all tests.
45
- %DOTNET_ROOT% \dotnet vstest %target% --logger:xunit
46
+ %DOTNET_ROOT% \dotnet vstest %target% --logger:xunit --TestCaseFilter: %QUARANTINE_FILTER%
46
47
if errorlevel 1 (
47
48
echo Failure in flaky test 1 >& 2
48
49
REM DO NOT EXIT and DO NOT SET EXIT_CODE to 1
Original file line number Diff line number Diff line change @@ -104,9 +104,10 @@ exit_code=0
104
104
# only puts the explicit filter traits the user provided in the flaky attribute
105
105
# Filter syntax: https://github.com/Microsoft/vstest-docs/blob/master/docs/filter.md
106
106
NONQUARANTINE_FILTER=" Flaky:All!=true&Flaky:Helix:All!=true&Flaky:Helix:Queue:All!=true&Flaky:Helix:Queue:$helix_queue_name !=true"
107
+ QUARANTINE_FILTER=" Flaky:All=true|Flaky:Helix:All=true|Flaky:Helix:Queue:All=true|Flaky:Helix:Queue:$helix_queue_name =true"
107
108
if [ " $quarantined " == true ]; then
108
109
echo " Running all tests including quarantined."
109
- $DOTNET_ROOT /dotnet vstest $test_binary_path --logger:xunit
110
+ $DOTNET_ROOT /dotnet vstest $test_binary_path --logger:xunit --TestCaseFilter: " $QUARANTINE_FILTER "
110
111
if [ $? != 0 ]; then
111
112
echo " Quarantined tests failed!" 1>&2
112
113
# DO NOT EXIT
You can’t perform that action at this time.
0 commit comments