|
|
@@ -639,8 +639,10 @@ def step14_routine(context):
|
|
|
|
|
|
def step15_routine(context):
|
|
|
context.print1("==SubTest: 检查电池健康指示灯功能测试 - Titem_16")
|
|
|
- context.print1("-:) sh led-test.sh")
|
|
|
- a = os.popen("sh led-test.sh | tail -1").read().replace('\n', '').replace('\r', '').strip()
|
|
|
+ context.print1("-:) sh batled-test.sh")
|
|
|
+ a = os.popen("sh batled-test.sh").read().replace('\n', '').replace('\r', '').strip()
|
|
|
+ context.print1("output: {}".format(a))
|
|
|
+ a = os.popen("sh batled-test.sh | tail -1").read().replace('\n', '').replace('\r', '').strip()
|
|
|
try:
|
|
|
a_int = int(a)
|
|
|
except ValueError:
|
|
|
@@ -740,7 +742,7 @@ def step27_routine(context):
|
|
|
context.print1("==SubTest: 检查gsensor基本功能测试 - Titem_23")
|
|
|
context.print1("-:) bash ./gsensor-SC7A20H/C180_gsensor_function_script.sh")
|
|
|
context.print1("10s内手动转动屏幕,才能测试PASS!")
|
|
|
- tkMessageBox.showinfo("Prompt", "请人工向右转动屏幕检查横竖屏,判断重力传感器是否正常?"):
|
|
|
+ tkMessageBox.showinfo("Prompt", "请人工向右转动屏幕检查横竖屏,判断重力传感器是否正常?")
|
|
|
a = os.popen("bash ./gsensor-SC7A20H/C180_gsensor_function_script.sh | grep -c \"pass\"").read().replace('\n', '').replace('\r', '').strip()
|
|
|
try:
|
|
|
a_int = int(a)
|