Fixed bug that check the arch of device
authorj-h.choi <j-h.choi@samsung.com>
Mon, 19 Feb 2024 08:31:40 +0000 (17:31 +0900)
committer조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Tue, 20 Feb 2024 01:32:38 +0000 (10:32 +0900)
Change-Id: Ia27f81678ad75cc5d5029a2d9288c27f8319f291

tests/TCs/Utils.py

index 0a25754..da67ff3 100755 (executable)
@@ -164,10 +164,10 @@ def check_library_arch(rootpath, library):
     subprocess.run((f"rm ./{library}").split(), encoding="utf-8", stdout=subprocess.PIPE).stdout
 
     device_arch = get_device_arch()
-    if "armv7" == device_arch:
+    if "armv7" in device_arch:
         if "ARM" not in raw:
             return "FAIL"
-    elif "x86" == device_arch:
+    elif "x86" in device_arch:
         if "Intel 80386" not in raw:
             return "FAIL"
     else:
@@ -199,7 +199,7 @@ def run_tc_array(module_name, tc_array):
     return str(n) + ":" + str(f) + ":" + str(p)
 
 def check_tc_support():
-    if "armv8" == get_device_arch():
+    if "armv8" in get_device_arch():
         return False
     else:
         return True