bf::path path = kSmokePackagesDirectory / "RDSMode.wgt";
std::string pkgid = "smokewgt11";
std::string appid = "smokewgt11.RDSMode";
- bf::path delta_directory = kSmokePackagesDirectory / "delta_dir/";
- bf::path sdk_expected_directory =
- bf::path(ci::GetRootAppPath(false, params.test_user.uid)) / "tmp" / pkgid;
- bs::error_code error;
- bf::create_directories(sdk_expected_directory.parent_path(), error);
- ASSERT_FALSE(error);
+ bf::path delta_directory = kSmokePackagesDirectory / "delta_dir";
+ bf::path sdk_expected_directory = kSdkDirectory / "tmp" / pkgid;
ASSERT_TRUE(ci::CopyDir(delta_directory, sdk_expected_directory));
- ASSERT_EQ(backend.RDSUpdate(path, pkgid), ci::AppInstaller::Result::OK);
+ ASSERT_EQ(backend.RDSUpdate(path, pkgid),
+ ci::AppInstaller::Result::OK);
ASSERT_TRUE(ValidatePackage(pkgid, {appid}, params));
-
// Check delta modifications
ASSERT_FALSE(bf::exists(GetPackageRoot(pkgid, params.test_user.uid) /
"res" / "wgt" / "DELETED"));