summaryrefslogtreecommitdiff
path: root/tests/runtest.sh
diff options
context:
space:
mode:
authorJarret Shook <jashoo@microsoft.com>2018-10-08 09:25:16 -0700
committerGitHub <noreply@github.com>2018-10-08 09:25:16 -0700
commitdbf0bf11d120b2f7837ba767a7836b44474c82a5 (patch)
treef27d2d7441ecd77108594123136aa8fcd5d23692 /tests/runtest.sh
parent340b5708ce38230f1af66acf832547996aa0b2ff (diff)
downloadcoreclr-dbf0bf11d120b2f7837ba767a7836b44474c82a5.tar.gz
coreclr-dbf0bf11d120b2f7837ba767a7836b44474c82a5.tar.bz2
coreclr-dbf0bf11d120b2f7837ba767a7836b44474c82a5.zip
Runtest.py on Windows Arm(64) (#20227)
* Initial infrastructure work to get arm(64) runtest.cmd working * Add excludes and improve runtest.py 1) Adds a build_test_wrappers only to build-test.sh. 2) Adds arm64 windows excludes 3) Adds printlastresults to runtest.cmd 4) corrects runsequential in runtest.sh 5) Corrects SequentialRun in runtest.py 6) Minor improvements to printing test results and copying native test binaries * Address pr feedback * Add to issues targets for arm64 * Working Pri 0 testing. * Remove unecessary common msbuild arguments * add pri1 excludes * Remove common msbuild args * Fix silly python3 issue
Diffstat (limited to 'tests/runtest.sh')
-rwxr-xr-xtests/runtest.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/runtest.sh b/tests/runtest.sh
index 0917094710..e8bd197251 100755
--- a/tests/runtest.sh
+++ b/tests/runtest.sh
@@ -223,6 +223,7 @@ buildXUnitWrappers=
printLastResultsOnly=
generateLayoutOnly=
generateLayout=
+runSequential=
for i in "$@"
do
@@ -340,7 +341,7 @@ do
export testHostDir=${i#*=}
;;
--sequential)
- ((maxProcesses = 1))
+ runSequential=1
;;
--useServerGC)
((serverGC = 1))
@@ -535,7 +536,7 @@ if [ ! -z "$generateLayout" ]; then
runtestPyArguments+=("--generate_layout")
fi
-if [ ! -z "$sequential" ]; then
+if [ ! "$runSequential" -eq 0 ]; then
echo "Run tests sequentially."
runtestPyArguments+=("--sequential")
fi
@@ -552,7 +553,14 @@ if (($doCrossgen!=0)); then
runtestPyArguments+=("--precompile_core_root")
fi
+
+# Default to python3 if it is installed
+__Python=python
+ if command -v python3 &>/dev/null; then
+ __Python=python3
+fi
+
# Run the tests using cross platform runtest.py
echo "python ${scriptPath}/runtest.py ${runtestPyArguments[@]}"
-python "${scriptPath}/runtest.py" "${runtestPyArguments[@]}"
+$__Python "${scriptPath}/runtest.py" "${runtestPyArguments[@]}"
exit "$?"