Skip to content

Commit ec2c68f

Browse files
authored
use adb path in runURL method (#59)
1 parent 6979545 commit ec2c68f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

products/nativescript/preview_helpers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from core.enums.platform_type import Platform
55
from core.settings import Settings
66
from core.settings.Settings import TEST_SUT_HOME, TEST_RUN_HOME
7-
from core.utils.device.adb import Adb
7+
from core.utils.device.adb import Adb, ADB_PATH
88
from core.utils.device.simctl import Simctl
99
from core.utils.file_utils import File
1010
from core.utils.run import run
@@ -73,8 +73,8 @@ def run_app(url, device_id, platform):
7373
result = run(cmd)
7474
assert 'error' not in result.output
7575
elif platform is Platform.ANDROID:
76-
cmd = 'adb -s {0} shell am start -a android.intent.action.VIEW -d \
77-
"{1}" org.nativescript.preview'.format(device_id, url)
76+
cmd = '{0} -s {1} shell am start -a android.intent.action.VIEW -d \
77+
"{2}" org.nativescript.preview'.format(ADB_PATH, device_id, url)
7878
result = run(cmd)
7979
assert 'error' not in result.output
8080

0 commit comments

Comments
 (0)