From 7dfe7ddd172e04b433b9f0c28b71f9208512631a Mon Sep 17 00:00:00 2001 From: Tomasz Iwanek Date: Fri, 15 Jan 2016 13:38:56 +0100 Subject: [PATCH] Fix recovery smoke test Requires: - https://review.tizen.org/gerrit/45316 Verify by: $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.RecoveryMode_ForInstallation $ /usr/bin/wgt-backend-ut/smoke_test --gtest_filter=SmokeTest.RecoveryMode_ForUpdate Change-Id: Iac901289fcbd17315a9d3ba4d73c1c06dbb3b18f --- src/unit_tests/smoke_test.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/unit_tests/smoke_test.cc b/src/unit_tests/smoke_test.cc index ee47203..6cabbdf 100644 --- a/src/unit_tests/smoke_test.cc +++ b/src/unit_tests/smoke_test.cc @@ -63,6 +63,8 @@ class StepCrash : public ci::Step { void RemoveAllRecoveryFiles() { bf::path root_path = ci::GetRootAppPath(); + if (!bf::exists(root_path)) + return; for (auto& dir_entry : boost::make_iterator_range( bf::directory_iterator(root_path), bf::directory_iterator())) { if (bf::is_regular_file(dir_entry)) { @@ -275,7 +277,7 @@ ci::AppInstaller::Result DeltaInstall(const bf::path& path, ci::AppInstaller::Result Recover(const bf::path& recovery_file, RequestResult mode = RequestResult::NORMAL) { - const char* argv[] = {"", "-e", recovery_file.c_str()}; + const char* argv[] = {"", "-b", recovery_file.c_str()}; std::unique_ptr query_interface = CreateQueryInterface(); auto pkgmgr = -- 2.7.4