Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 3f7489b

Browse files
committed
Only send results to AppVeyor when AppVeyor=true
1 parent 9b4751e commit 3f7489b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/Run-NUnit.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ $xml = Join-Path $rootDirectory "nunit-$Project.xml"
4040
exit -1
4141
}
4242

43-
Run-Process -Fatal $TimeoutDuration $consoleRunner $dll,"--where ""cat != Timings""","--result=$xml;format=AppVeyor"
43+
$args = @()
44+
if ($AppVeyor) {
45+
$args = $dll, "--where", "cat!=Timings", "--result=$xml;format=AppVeyor"
46+
} else {
47+
$args = $dll, "--where", "cat!=Timings", "--result=$xml"
48+
}
49+
50+
Run-Process -Fatal $TimeoutDuration $consoleRunner $args
4451
if (!$?) {
4552
Die 1 "$Project tests failed"
4653
}

0 commit comments

Comments
 (0)