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 314f1505427e1d655f39384750bb8c8bd551845b..0538ded05e85a28c2af90a130b1b906615837236 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')