adapt target mount change

Signed-off-by: alex__hold <hejian3@huawei.com>
This commit is contained in:
alex__hold
2021-09-29 16:19:46 +08:00
parent 1374912539
commit 02dc52c8d8
3 changed files with 3 additions and 7 deletions
@@ -648,7 +648,7 @@ class AppInstallKit(ITestKit):
def remount(device):
cmd = "mount -o rw,remount /" \
cmd = "shell mount -o rw,remount /" \
if device.usb_type == DeviceConnectorType.hdc else "remount"
device.hdc_command(cmd)
-2
View File
@@ -124,7 +124,6 @@ class DeviceTestType(object):
DeviceTestType enumeration
"""
cpp_test = "CppTest"
dex_test = "DexTest"
hap_test = "HapTest"
junit_test = "JUnitTest"
jsunit_test = "JSUnitTest"
@@ -155,7 +154,6 @@ class HostDrivenTestType(object):
TEST_DRIVER_SET = {
DeviceTestType.cpp_test,
DeviceTestType.dex_test,
DeviceTestType.hap_test,
DeviceTestType.junit_test,
DeviceTestType.jsunit_test,
+2 -4
View File
@@ -38,14 +38,12 @@ TestSetSource = namedtuple('TestSetSource', 'set')
TestSource = namedtuple('TestSource', 'source_file source_string config_file '
'test_name test_type module_name')
TEST_TYPE_DICT = {"DEX": DeviceTestType.dex_test,
"HAP": DeviceTestType.hap_test,
TEST_TYPE_DICT = {"HAP": DeviceTestType.hap_test,
"PYT": HostDrivenTestType.device_test,
"JST": DeviceTestType.jsunit_test,
"CXX": DeviceTestType.cpp_test,
"BIN": DeviceTestType.lite_cpp_test}
EXT_TYPE_DICT = {".dex": DeviceTestType.dex_test,
".hap": DeviceTestType.hap_test,
EXT_TYPE_DICT = {".hap": DeviceTestType.hap_test,
".py": HostDrivenTestType.device_test,
".js": DeviceTestType.jsunit_test,
".bin": DeviceTestType.lite_cpp_test,