tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
- p = int(pn.split(":")[0])
- n = int(pn.split(":")[1])
+ n = int(pn.split(":")[0])
+ f = int(pn.split(":")[1])
+ p = int(pn.split(":")[2])
r = 0.0
- f = len(tc_array) - p - n
if (len(tc_array) - n) != 0:
r = round(((p / (len(tc_array) - n)) * 100), 2)
print(f"--- {module_name} TCT Result ---\nNONE : [{n}] / FAIL : [{f}] / PASS : [{p}] - [{r}%]\n")
tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
- p = int(pn.split(":")[0])
- n = int(pn.split(":")[1])
+ n = int(pn.split(":")[0])
+ f = int(pn.split(":")[1])
+ p = int(pn.split(":")[2])
r = 0.0
- f = len(tc_array) - p - n
if (len(tc_array) - n) != 0:
r = round(((p / (len(tc_array) - n)) * 100), 2)
print(f"--- {module_name} TCT Result ---\nNONE : [{n}] / FAIL : [{f}] / PASS : [{p}] - [{r}%]\n")
tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
- p = int(pn.split(":")[0])
- n = int(pn.split(":")[1])
+ n = int(pn.split(":")[0])
+ f = int(pn.split(":")[1])
+ p = int(pn.split(":")[2])
r = 0.0
- f = len(tc_array) - p - n
if (len(tc_array) - n) != 0:
r = round(((p / (len(tc_array) - n)) * 100), 2)
print(f"--- {module_name} TCT Result ---\nNONE : [{n}] / FAIL : [{f}] / PASS : [{p}] - [{r}%]\n")
tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
- p = int(pn.split(":")[0])
- n = int(pn.split(":")[1])
+ n = int(pn.split(":")[0])
+ f = int(pn.split(":")[1])
+ p = int(pn.split(":")[2])
r = 0.0
- f = len(tc_array) - p - n
if (len(tc_array) - n) != 0:
r = round(((p / (len(tc_array) - n)) * 100), 2)
print(f"--- {module_name} TCT Result ---\nNONE : [{n}] / FAIL : [{f}] / PASS : [{p}] - [{r}%]\n")
return f"FAIL : Get the pid for {pkg_id}"
raw = cmd(f"shell cat /proc/{pid}/smaps | grep libSkiaSharp.so")
- if (f"{DOTNET_DIR}Libraries/libSkiaSharp.so.." in raw) or \
- (f"{root_path}/bin/libSkiaSharp.so" not in raw):
+ if (f"{root_path}/bin/libSkiaSharp.so" not in raw) or \
+ (f"{DOTNET_DIR}Libraries/libSkiaSharp.so.." in raw):
return "FAIL : The libSkiaSharp.so library in the application should be loaded when running the application"
cmd(f"shell app_launcher -t {pkg_id}")
tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
- p = int(pn.split(":")[0])
- n = int(pn.split(":")[1])
+ n = int(pn.split(":")[0])
+ f = int(pn.split(":")[1])
+ p = int(pn.split(":")[2])
r = 0.0
- f = len(tc_array) - p - n
if (len(tc_array) - n) != 0:
r = round(((p / (len(tc_array) - n)) * 100), 2)
print(f"--- {module_name} TCT Result ---\nNONE : [{n}] / FAIL : [{f}] / PASS : [{p}] - [{r}%]\n")
tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
- p = int(pn.split(":")[0])
- n = int(pn.split(":")[1])
+ n = int(pn.split(":")[0])
+ f = int(pn.split(":")[1])
+ p = int(pn.split(":")[2])
r = 0.0
- f = len(tc_array) - p - n
if (len(tc_array) - n) != 0:
r = round(((p / (len(tc_array) - n)) * 100), 2)
print(f"--- {module_name} TCT Result ---\nNONE : [{n}] / FAIL : [{f}] / PASS : [{p}] - [{r}%]\n")
tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
- p = int(pn.split(":")[0])
- n = int(pn.split(":")[1])
+ n = int(pn.split(":")[0])
+ f = int(pn.split(":")[1])
+ p = int(pn.split(":")[2])
r = 0.0
- f = len(tc_array) - p - n
if (len(tc_array) - n) != 0:
r = round(((p / (len(tc_array) - n)) * 100), 2)
print(f"--- {module_name} TCT Result ---\nNONE : [{n}] / FAIL : [{f}] / PASS : [{p}] - [{r}%]\n")
# Run the test array
def run_tc_array(module_name, tc_array):
- p = 0
n = 0
+ f = 0
+ p = 0
for tc in tc_array:
print(f">{module_name}_{tc.__name__}...", end="\r")
ret = tc()
print(f">{module_name}_{tc.__name__} : {ret}")
- if "PASS" == ret: p += 1
if "NONE" in ret: n += 1
+ if "FAIL" in ret: f += 1
+ if "PASS" == ret: p += 1
sleep(3)
- return str(p) + ":" + str(n)
+ return str(n) + ":" + str(f) + ":" + str(p)
def check_tc_support():
if "armv8" == get_device_arch():