Fix GC Stress testing on non windows platforms
authorRama Krishnan Raghupathy <ramarag@microsoft.com>
Thu, 15 Sep 2016 20:45:04 +0000 (13:45 -0700)
committerRama Krishnan Raghupathy <ramarag@microsoft.com>
Tue, 20 Sep 2016 01:07:03 +0000 (18:07 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/9a236ce1619e8c3df173fbff55ff7184bb76de22

src/coreclr/tests/runtest.sh
src/coreclr/tests/setup-runtime-dependencies.sh

index cd5da94..adf7895 100755 (executable)
@@ -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.
index 0658673..4573e08 100755 (executable)
@@ -87,6 +87,10 @@ fi
 
 # This script must be located in coreclr/tests.
 scriptDir=$(cd "$(dirname "$0")"; pwd -P)
+
+echo "Running init-tools.sh"
+$scriptDir/../init-tools.sh
+
 dotnetToolsDir=$scriptDir/../Tools
 dotnetCmd=${dotnetToolsDir}/dotnetcli/dotnet
 packageDir=${scriptDir}/../packages