From: Damian Pietruchowski Date: Mon, 20 Feb 2017 11:56:35 +0000 (+0100) Subject: Smoke tests- check if package dont exist in skel directory X-Git-Tag: accepted/tizen/common/20170309.175302~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1a907d1c812760bb966409f78134f60f201ed54;p=platform%2Fcore%2Fappfw%2Fwgt-backend.git Smoke tests- check if package dont exist in skel directory This is required by: DeinstallationMode RecoveryMode_Tpk_Installation RecoveryMode_ForMountInstall InstallationMode_Rollback Change-Id: Idd0a701702558a463ef86651886c66567e5670d0 Signed-off-by: Damian Pietruchowski --- diff --git a/src/unit_tests/smoke_test.cc b/src/unit_tests/smoke_test.cc index 2512a61..844fa1c 100644 --- a/src/unit_tests/smoke_test.cc +++ b/src/unit_tests/smoke_test.cc @@ -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;