From e3c567ef5e515522cb366fb8255805a7b54f0799 Mon Sep 17 00:00:00 2001 From: redjie Date: Mon, 5 Sep 2022 10:32:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E7=AC=AC=E4=BA=8C=E6=AC=A1IP?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=EF=BC=8C=E5=88=86=E5=B8=83=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E4=B8=8A=E6=8B=A6=E6=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: redjie Change-Id: Iaecb204cbe31153ca8a9e3f109839c71d9037652 --- screenshot32/DistributedTest/testcases/DistributedTest.py | 4 ---- screenshot32/resource/capturescreentest.py | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/screenshot32/DistributedTest/testcases/DistributedTest.py b/screenshot32/DistributedTest/testcases/DistributedTest.py index bbd1b5d..4e9dc11 100644 --- a/screenshot32/DistributedTest/testcases/DistributedTest.py +++ b/screenshot32/DistributedTest/testcases/DistributedTest.py @@ -91,16 +91,12 @@ class DistributedTest(TestCase): CommonOH.wake(self.Phone1) # 设置不息屏 CommonOH.hdc_std(self.Phone1, 'shell "power-shell setmode 602"') - # 设置 phone1 ip - CommonOH.hdc_std(self.Phone1, "shell ifconfig eth0 192.168.0.1") def net_connect2(self): # 点亮屏幕 CommonOH.wake(self.Phone2) # 设置不息屏 CommonOH.hdc_std(self.Phone2, 'shell "power-shell setmode 602"') - # 设置 phone1 ip - CommonOH.hdc_std(self.Phone2, "shell ifconfig eth0 192.168.0.2") def teardown(self): # 切入后台,结束进程 diff --git a/screenshot32/resource/capturescreentest.py b/screenshot32/resource/capturescreentest.py index 86b00ab..8079673 100644 --- a/screenshot32/resource/capturescreentest.py +++ b/screenshot32/resource/capturescreentest.py @@ -589,6 +589,7 @@ if __name__ == "__main__": if len(fail_idx_list) != 0: PrintToLog("SmokeTest:: error: name {}, index {}, these testcase is failed".format(fail_name_list,\ fail_idx_list)) + SysExit() if distributed_result == 1: PrintToLog("SmokeTest:: testcase 14, distributed is ok!") else: @@ -596,6 +597,7 @@ if __name__ == "__main__": if len(fail_idx_list) != 0: PrintToLog("SmokeTest:: error: name {}, index {}, these testcase is failed".format(fail_name_list,\ fail_idx_list)) + SysExit() EnterShellCmd("cd /data/log/faultlog/temp && tar -cf after_test_crash_log_{}.tar cppcrash*".format(args.device_num)) GetFileFromDev("/data/log/faultlog/temp/after_test_crash_log_{}.tar".format(args.device_num), \ -- Gitee