projects
/
platform
/
core
/
dotnet
/
launcher.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug that check the arch of device
[platform/core/dotnet/launcher.git]
/
tests
/
TCs
/
Utils.py
diff --git
a/tests/TCs/Utils.py
b/tests/TCs/Utils.py
index
0a25754
..
da67ff3
100755
(executable)
--- a/
tests/TCs/Utils.py
+++ b/
tests/TCs/Utils.py
@@
-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()
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"
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:
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():
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
return False
else:
return True