summaryrefslogtreecommitdiff
path: root/tests/runtest.sh
diff options
context:
space:
mode:
authorRama Krishnan Raghupathy <ramarag@microsoft.com>2016-09-15 13:45:04 -0700
committerRama Krishnan Raghupathy <ramarag@microsoft.com>2016-09-19 18:07:03 -0700
commit9a236ce1619e8c3df173fbff55ff7184bb76de22 (patch)
treeda95cda55541a21f72f7e546e41afc5fd4dbd46d /tests/runtest.sh
parenta3d93afa96c7bf488347d139c5f0affb0517674c (diff)
downloadcoreclr-9a236ce1619e8c3df173fbff55ff7184bb76de22.tar.gz
coreclr-9a236ce1619e8c3df173fbff55ff7184bb76de22.tar.bz2
coreclr-9a236ce1619e8c3df173fbff55ff7184bb76de22.zip
Fix GC Stress testing on non windows platforms
Diffstat (limited to 'tests/runtest.sh')
-rwxr-xr-xtests/runtest.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/runtest.sh b/tests/runtest.sh
index cd5da9484d..adf7895d2f 100755
--- a/tests/runtest.sh
+++ b/tests/runtest.sh
@@ -909,15 +909,9 @@ function coreclr_code_coverage {
}
function check_cpu_architecture {
- # Use uname to determine what the CPU is.
- local CPUName=$(uname -p)
+ local CPUName=$(uname -m)
local __arch=
- # Some Linux platforms report unknown for platform, but the arch for machine.
- if [ "$CPUName" == "unknown" ]; then
- CPUName=$(uname -m)
- fi
-
case $CPUName in
i686)
__arch=x86
@@ -941,6 +935,7 @@ function check_cpu_architecture {
}
ARCH=$(check_cpu_architecture)
+echo "Running on CPU- $ARCH"
# Exit code constants
readonly EXIT_CODE_SUCCESS=0 # Script ran normally.