提交 c24624a9 编写于 作者: O openharmony_ci 提交者: Gitee

!1304 [hiviewdfx子系统]更新测试用例

Merge pull request !1304 from zhuqingxi/cherry-pick-1638851743
......@@ -46,11 +46,6 @@ void LibhilogCPPtest::TearDown()
}
void LibhilogCPPtest::SetUpTestCase()
{
std::vector<std::string> cmdret;
string cmd = "setprop persist.sys.hilog.debug.on false";
ExecCmdWithRet(cmd, cmdret);
cmd = "setprop hilog.debug.on false";
ExecCmdWithRet(cmd, cmdret);
}
void LibhilogCPPtest::TearDownTestCase()
{
......
......@@ -49,11 +49,6 @@ void LibhilogCtest::TearDown()
}
void LibhilogCtest::SetUpTestCase()
{
std::vector<std::string> cmdret;
string cmd = "setprop persist.sys.hilog.debug.on false";
ExecCmdWithRet(cmd, cmdret);
cmd = "setprop hilog.debug.on false";
ExecCmdWithRet(cmd, cmdret);
}
void LibhilogCtest::TearDownTestCase()
{
......
......@@ -39,11 +39,7 @@ private:
void HiSysEventCPPTest::SetUp()
{
std::cout << "SetUp" << std::endl;
std::vector<std::string> cmdret;
string cmd = "hilog -r";
ExecCmdWithRet(cmd, cmdret);
cmd = "setprop persist.sys.hilog.debug.on false";
ExecCmdWithRet(cmd, cmdret);
CleanCmd();
}
void HiSysEventCPPTest::TearDown()
{
......
......@@ -87,6 +87,7 @@ void CleanCmd()
std::string cleanCmd = "hilog -r";
CmdRun(cleanCmd, cmdResult);
std::cout << cmdResult;
sleep(1);
}
std::string ExecuteCmd(std::string cmd)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册