Add sdk directory backup 34/158034/3
authorkniedzielew <k.niedzielew@samsung.com>
Fri, 27 Oct 2017 10:34:37 +0000 (12:34 +0200)
committerKarol Niedzielewski <k.niedzielew@samsung.com>
Fri, 27 Oct 2017 12:17:13 +0000 (12:17 +0000)
This solution is needed in order to provide SetUp
and TearDown for RDSMode and avoid modification of
"/home/owner/share/tmp/sdk_tools" during testing.

Change-Id: I871ab59c55a9eafaadf382d3e3f2f88eef3f5840
Signed-off-by: kniedzielew <k.niedzielew@samsung.com>
src/unit_tests/common/smoke_utils.cc
src/unit_tests/common/smoke_utils.h

index 30b49c0..c529b6a 100644 (file)
@@ -73,6 +73,7 @@ const char kLegacyExtImageDir[] = "legacy_extimage_dir";
 const std::string& kDefaultUserIdStr = std::to_string(kDefaultUserUid);
 const uid_t kGlobalUserUid = tzplatform_getuid(TZ_SYS_GLOBALAPP_USER);
 const uid_t kGlobalUserGid = tzplatform_getgid(TZ_SYS_GLOBALAPP_USER);
+extern const bf::path kSdkDirectory = "/home/owner/share/tmp/sdk_tools";
 
 ci::RequestMode ParseRequestMode(int argc,  char** argv) {
   bo::options_description desc("Available options");
@@ -867,6 +868,7 @@ std::vector<bf::path> SetupBackupDirectories(uid_t test_uid) {
 
   bf::path apps_rw = ci::GetRootAppPath(false, test_uid);
   entries.emplace_back(apps_rw);
+  entries.emplace_back(kSdkDirectory);
 
   return entries;
 }
index db78547..ece1372 100644 (file)
@@ -66,6 +66,7 @@
 namespace smoke_test {
 
 extern const bf::path kSmokePackagesDirectory;
+extern const bf::path kSdkDirectory;
 extern const uid_t kGlobalUserUid;
 extern const uid_t kGlobalUserGid;
 extern const char kLegacyExtImageDir[];