diff options
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index 743c35a0000..730f4e422de 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -67,12 +67,12 @@ def isSolaris(): return sys.platform == "sunos5" def isSparc(): - p = subprocess.Popen("uname -m", stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True) - if not process or not process.stdout: + p = subprocess.Popen("uname -p", stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True) + if not p or not p.stdout: print("unable to get system information!") sys.exit(1) l = p.stdout.readline().decode("utf-8").strip() - if l == "sun4u": + if l == "sparc": return True else: return False @@ -1436,7 +1436,7 @@ def getTestEnv(lang, testdir): if iceHome and x64: if isSolaris(): if isSparc(): - libDir = os.path.join(libDir, "sparcv9") + libDir = os.path.join(libDir, "64") else: libDir = os.path.join(libDir, "amd64") elif not isDarwin(): |