mirror of
https://github.com/openharmony/test_xdevice.git
synced 2026-07-20 21:59:26 -04:00
adapt target mount change
Signed-off-by: alex__hold <hejian3@huawei.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user