summaryrefslogtreecommitdiff
path: root/testsuite/driver/cpu_features.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/driver/cpu_features.py')
-rw-r--r--testsuite/driver/cpu_features.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/testsuite/driver/cpu_features.py b/testsuite/driver/cpu_features.py
index 6e32d3b445..7b4340b61c 100644
--- a/testsuite/driver/cpu_features.py
+++ b/testsuite/driver/cpu_features.py
@@ -29,9 +29,7 @@ def get_cpu_features():
return flags
elif config.os == 'darwin':
- # we hardcode the sysctl path, otherwise we rely on /usr/sbin being in
- # path.
- out = subprocess.check_output(['/usr/sbin/sysctl', 'hw']).decode('UTF-8')
+ out = subprocess.check_output(['sysctl', 'hw']).decode('UTF-8')
features = set()
def check_feature(darwin_name, our_name=None):
if re.search(r'hw\.optional.%s:\s*1' % darwin_name, out) is not None:
@@ -68,3 +66,4 @@ if __name__ == '__main__':
import sys
config.os = sys.argv[1]
print(get_cpu_features())
+