Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Hays <ianha@microsoft.com>2016-04-19 23:08:54 +0300
committerIan Hays <ianha@microsoft.com>2016-04-19 23:08:54 +0300
commitbfed4ca40bc3be0baf204ab29ca0809e606cab06 (patch)
tree6edb7559422ee20c2f90f1487e15993b655df05a /run-test.sh
parentf85c512ecdade5e96476860e7740d32e3da37126 (diff)
Update netci and run-test to use the IgnoreForCI trait in Jenkins
pdates the netci.groovy and runtest.sh files to pass -notrait Category=IgnoreForCI to build.cmd and run-test.sh in Jenkins so that we can disable tests from running when they're being run in Jenkins.
Diffstat (limited to 'run-test.sh')
-rwxr-xr-xrun-test.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/run-test.sh b/run-test.sh
index 6cfbce12a1..485733d0f0 100755
--- a/run-test.sh
+++ b/run-test.sh
@@ -41,6 +41,8 @@ usage()
echo " --restrict-proj <regex> Run test projects that match regex"
echo " default: .* (all projects)"
echo " --useServerGC Enable Server GC for this test run"
+ echo " --IgnoreForCI Passes the IgnoreForCI category trait to the xunit runner to let the tests know they're in CI"
+ echo " --outerloop Includes the OuterLoop tests that are by default excluded."
echo
echo "Runtime Code Coverage options:"
echo " --coreclr-coverage Optional argument to get coreclr code coverage reports"
@@ -183,9 +185,9 @@ run_test()
echo
echo "Running tests in $dirName"
- echo "./corerun xunit.console.netcore.exe $testProject.dll -xml testResults.xml -notrait category=failing $OuterLoop -notrait category=$xunitOSCategory -notrait Benchmark=true"
+ echo "./corerun xunit.console.netcore.exe $testProject.dll -xml testResults.xml -notrait category=failing $OuterLoop $IgnoreForCI -notrait category=$xunitOSCategory -notrait Benchmark=true"
echo
- ./corerun xunit.console.netcore.exe "$testProject.dll" -xml testResults.xml -notrait category=failing $OuterLoop -notrait category=$xunitOSCategory -notrait Benchmark=true
+ ./corerun xunit.console.netcore.exe "$testProject.dll" -xml testResults.xml -notrait category=failing $OuterLoop $IgnoreForCI -notrait category=$xunitOSCategory -notrait Benchmark=true
exitCode=$?
if [ $exitCode -ne 0 ]
@@ -252,6 +254,7 @@ coreclr_code_coverage()
((serverGC = 0))
OuterLoop="-notrait category=outerloop"
+IgnoreForCI =""
while [[ $# > 0 ]]
do
@@ -296,6 +299,9 @@ do
--outerloop)
OuterLoop=""
;;
+ --IgnoreForCI)
+ IgnoreForCI="-notrait category=IgnoreForCI"
+ ;;
*)
;;
esac