From 4a883c4e78f0d903a6bc5b6a85e8f1a7a4b87714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E5=B9=BF=E7=94=9F?= Date: Sat, 7 Jun 2025 05:44:21 +0000 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=AE=9E=E6=97=B6=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E7=9A=84hap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 马广生 --- cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py b/cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py index 314f150..0538ded 100644 --- a/cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py +++ b/cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py @@ -23,7 +23,7 @@ class Test: @pytest.mark.parametrize('setup_teardown', [None], indirect=True) def test(self, setup_teardown, device): logging.info('install hap') - hap_path = os.path.join(device.resource_path, 'entry-default-signed.hap') + hap_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(device.resource_path))), 'entry-default-signed.hap') device.install_hap(hap_path) time.sleep(1) logging.info('start app') -- Gitee