Merge "Step Recover Per User Directories for Recovery Mode added" into tizen
authorjongmyeong ko <jongmyeong.ko@samsung.com>
Fri, 10 Feb 2017 08:38:03 +0000 (00:38 -0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 10 Feb 2017 08:38:03 +0000 (00:38 -0800)
src/unit_tests/smoke_test.cc
src/wgt/wgt_installer.cc

index 3f18a52..0057a32 100644 (file)
@@ -371,6 +371,14 @@ void CheckPackageNonExistance(const std::string& pkgid,
       pkgid, ci::GetRequestMode(kTestUserId),
       kTestUserId));
   PackageCheckCleanup(pkgid, appids);
+  if (kTestUserId == kGlobalUserUid) {
+      ci::UserList list = ci::GetUserList();
+      for (auto& l : list) {
+        bf::path root_path = ci::GetRootAppPath(false, std::get<0>(l));
+        bf::path package_path = root_path / pkgid;
+        ASSERT_FALSE(bf::exists(package_path));
+      }
+  }
 }
 
 void CheckPackageReadonlyNonExistance(const std::string& pkgid,
index 9413c22..dbe78b1 100755 (executable)
@@ -38,6 +38,7 @@
 #include <common/step/filesystem/step_recover_manifest.h>
 #include <common/step/filesystem/step_recover_external_storage.h>
 #include <common/step/filesystem/step_recover_storage_directories.h>
+#include <common/step/filesystem/step_recover_per_user_storage_directories.h>
 #include <common/step/filesystem/step_remove_files.h>
 #include <common/step/filesystem/step_remove_icons.h>
 #include <common/step/filesystem/step_remove_globalapp_symlinks.h>
@@ -386,6 +387,7 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr)
       AddStep<ci::filesystem::StepRecoverManifest>();
       AddStep<ci::filesystem::StepRecoverExternalStorage>();
       AddStep<ci::filesystem::StepRecoverStorageDirectories>();
+      AddStep<ci::filesystem::StepRecoverPerUserStorageDirectories>();
       AddStep<ci::filesystem::StepRecoverFiles>();
       AddStep<ci::mount::StepMountRecover>();
       AddStep<wgt::security::StepWgtRecoverSignature>();