Smoke tests- check if package dont exist in skel directory 85/115585/2
authorDamian Pietruchowski <d.pietruchow@samsung.com>
Mon, 20 Feb 2017 11:56:35 +0000 (12:56 +0100)
committerjaekuk lee <juku1999@samsung.com>
Fri, 3 Mar 2017 01:16:58 +0000 (17:16 -0800)
This is required by:
DeinstallationMode
RecoveryMode_Tpk_Installation
RecoveryMode_ForMountInstall
InstallationMode_Rollback

Change-Id: Idd0a701702558a463ef86651886c66567e5670d0
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
src/unit_tests/smoke_test.cc

index 2512a61..844fa1c 100644 (file)
@@ -393,6 +393,8 @@ void CheckPackageNonExistance(const std::string& pkgid,
   PackageCheckCleanup(pkgid, appids);
   if (kTestUserId == kGlobalUserUid) {
       ci::UserList list = ci::GetUserList();
+      bf::path skel_path(kSkelDir);
+      ASSERT_FALSE(bf::exists(skel_path / pkgid));
       for (auto& l : list) {
         bf::path root_path = ci::GetRootAppPath(false, std::get<0>(l));
         bf::path package_path = root_path / pkgid;