Skip to content

Commit a0cab87

Browse files
authored
Merge pull request #2163 from TripleRider/fix_testcase_platform_check
Fix cpu arch returned value in TestCase.py
2 parents 46bd9d4 + 7622162 commit a0cab87

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

TestCases/TestCase.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ def __init__(self,tag_in):
111111
self.ntest_vals = 4
112112
self.test_vals = []
113113
self.test_vals_aarch64 = []
114-
self.cpu_arch = platform.processor()
115-
self.enabled_on_cpu_arch = ["x86_64", "aarch64"]
114+
self.cpu_arch = platform.machine().casefold()
115+
self.enabled_on_cpu_arch = ["x86_64","amd64","aarch64","arm64"]
116116
self.enabled_with_tsan = True
117117
self.command = self.Command()
118118
self.timeout = 0
@@ -957,7 +957,7 @@ def is_enabled(self, running_with_tsan=False):
957957

958958
def adjust_test_data(self):
959959

960-
if self.cpu_arch == 'aarch64':
960+
if self.cpu_arch == 'aarch64' or self.cpu_arch == 'arm64':
961961
if len(self.test_vals_aarch64) != 0:
962962
self.test_vals = self.test_vals_aarch64
963963

0 commit comments

Comments
 (0)