From ccbae029d8bee4285d050c3fa15b105233f7b71a Mon Sep 17 00:00:00 2001 From: stivn Date: Wed, 6 Apr 2022 18:00:26 +0800 Subject: [PATCH] modified Signed-off-by: stivn --- src/core/driver/drivers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/driver/drivers.py b/src/core/driver/drivers.py index 5a160f4..ac93f2b 100755 --- a/src/core/driver/drivers.py +++ b/src/core/driver/drivers.py @@ -462,11 +462,13 @@ class CppTestDriver(IDriver): self.config.device.stop_catch_device_log() def _init_gtest(self): - self.config.device.hdc_command("remount") + self.config.device.hdc_command("target mount") self.config.device.execute_shell_command( "rm -rf %s" % self.config.target_test_path) self.config.device.execute_shell_command( "mkdir -p %s" % self.config.target_test_path) + self.config.device.execute_shell_command( + "mount -o rw,remount,rw /") if "fuzztest" == self.config.testtype[0]: self.config.device.execute_shell_command( "mkdir -p %s" % os.path.join(self.config.target_test_path, @@ -648,7 +650,7 @@ class JSUnitTestDriver(IDriver): self.config.device.execute_shell_command( "mkdir -p %s" % self.config.target_test_path) self.config.device.execute_shell_command( - "mount -o rw,remount,rw /%s" % "system") + "mount -o rw,remount,rw /") def _run_jsunit(self, suite_file): -- Gitee