Apply the changed recovery file path in smoke util 51/319151/1
authorIlho Kim <ilho159.kim@samsung.com>
Wed, 16 Oct 2024 07:29:35 +0000 (16:29 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Wed, 16 Oct 2024 07:32:10 +0000 (16:32 +0900)
Change-Id: Ibdae0a532d670eff1da433a8272a84b1195b2c95
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
test/smoke_tests/common/smoke_utils.cc

index b46ecf2415e6eda977fc5eb5d57fd2ca90ab8561..edc5da831740ca2a515f44d93440dfbb090de895 100644 (file)
@@ -233,7 +233,7 @@ void AddDataFiles(const std::string& pkgid, uid_t uid,
 }
 
 void RemoveAllRecoveryFiles(const std::string& prefix, uid_t uid) {
-  fs::path root_path = ci::GetRootAppPath(false, uid);
+  fs::path root_path = ci::GetRecoveryFilePath(ci::GetRootAppPath(false, uid));
   if (!fs::exists(root_path))
     return;
   for (auto& dir_entry : fs::directory_iterator(root_path)) {
@@ -250,7 +250,7 @@ void RemoveAllRecoveryFiles(const std::string& prefix, uid_t uid) {
 }
 
 fs::path FindRecoveryFile(const std::string& prefix, uid_t uid) {
-  fs::path root_path = ci::GetRootAppPath(false, uid);
+  fs::path root_path = ci::GetRecoveryFilePath(ci::GetRootAppPath(false, uid));
   if (!fs::exists(root_path))
     return {};