Disable test reporting for flaky tests on Helix (#10352)
This commit is contained in:
parent
5df6e452b6
commit
e925df6a85
|
|
@ -52,7 +52,7 @@ if errorlevel 1 (
|
||||||
|
|
||||||
set FLAKY_FILTER="Flaky:All=true|Flaky:Helix:All=true|Flaky:Helix:Queue:All=true|Flaky:Helix:Queue:%HELIX%=true"
|
set FLAKY_FILTER="Flaky:All=true|Flaky:Helix:All=true|Flaky:Helix:Queue:All=true|Flaky:Helix:Queue:%HELIX%=true"
|
||||||
echo Running known-flaky tests.
|
echo Running known-flaky tests.
|
||||||
%DOTNET_ROOT%\dotnet vstest %target% --logger:trx --TestCaseFilter:%FLAKY_FILTER%
|
%DOTNET_ROOT%\dotnet vstest %target% --TestCaseFilter:%FLAKY_FILTER%
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo Failure in flaky test 1>&2
|
echo Failure in flaky test 1>&2
|
||||||
REM DO NOT EXIT and DO NOT SET EXIT_CODE to 1
|
REM DO NOT EXIT and DO NOT SET EXIT_CODE to 1
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ if [ $nonflaky_exitcode != 0 ]; then
|
||||||
fi
|
fi
|
||||||
FLAKY_FILTER="Flaky:All=true|Flaky:Helix:All=true|Flaky:Helix:Queue:All=true|Flaky:Helix:Queue:$HELIX=true"
|
FLAKY_FILTER="Flaky:All=true|Flaky:Helix:All=true|Flaky:Helix:Queue:All=true|Flaky:Helix:Queue:$HELIX=true"
|
||||||
echo "Running known-flaky tests."
|
echo "Running known-flaky tests."
|
||||||
$DOTNET_ROOT/dotnet vstest $1 --logger:trx --TestCaseFilter:"$FLAKY_FILTER"
|
$DOTNET_ROOT/dotnet vstest $1 --TestCaseFilter:"$FLAKY_FILTER"
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
echo "Flaky tests failed!" 1>&2
|
echo "Flaky tests failed!" 1>&2
|
||||||
# DO NOT EXIT
|
# DO NOT EXIT
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue