summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
56555d1)
Requires:
https://review.tizen.org/gerrit/#/c/58863
Change-Id: I1b971a87a8aa534a4a6526d9c3b6a70046a986d0
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
};
void RemoveAllRecoveryFiles() {
};
void RemoveAllRecoveryFiles() {
- bf::path root_path = ci::GetRootAppPath();
+ bf::path root_path = ci::GetRootAppPath(false);
if (!bf::exists(root_path))
return;
for (auto& dir_entry : boost::make_iterator_range(
if (!bf::exists(root_path))
return;
for (auto& dir_entry : boost::make_iterator_range(
}
bf::path FindRecoveryFile() {
}
bf::path FindRecoveryFile() {
- bf::path root_path = ci::GetRootAppPath();
+ bf::path root_path = ci::GetRootAppPath(false);
for (auto& dir_entry : boost::make_iterator_range(
bf::directory_iterator(root_path), bf::directory_iterator())) {
if (bf::is_regular_file(dir_entry)) {
for (auto& dir_entry : boost::make_iterator_range(
bf::directory_iterator(root_path), bf::directory_iterator())) {
if (bf::is_regular_file(dir_entry)) {
bool ValidateFileContentInPackage(const std::string& pkgid,
const std::string& relative,
const std::string& expected) {
bool ValidateFileContentInPackage(const std::string& pkgid,
const std::string& relative,
const std::string& expected) {
- bf::path root_path = ci::GetRootAppPath();
+ bf::path root_path = ci::GetRootAppPath(false);
bf::path file_path = root_path / pkgid / relative;
if (!bf::exists(file_path)) {
LOG(ERROR) << file_path << " doesn't exist";
bf::path file_path = root_path / pkgid / relative;
if (!bf::exists(file_path)) {
LOG(ERROR) << file_path << " doesn't exist";
}
void ValidatePackageFS(const std::string& pkgid, const std::string& appid) {
}
void ValidatePackageFS(const std::string& pkgid, const std::string& appid) {
- bf::path root_path = ci::GetRootAppPath();
+ bf::path root_path = ci::GetRootAppPath(false);
bf::path package_path = root_path / pkgid;
bf::path binary_path = package_path / "bin" / appid;
bf::path data_path = package_path / "data";
bf::path package_path = root_path / pkgid;
bf::path binary_path = package_path / "bin" / appid;
bf::path data_path = package_path / "data";
}
void PackageCheckCleanup(const std::string& pkgid, const std::string& appid) {
}
void PackageCheckCleanup(const std::string& pkgid, const std::string& appid) {
- bf::path root_path = ci::GetRootAppPath();
+ bf::path root_path = ci::GetRootAppPath(false);
bf::path package_path = root_path / pkgid;
ASSERT_FALSE(bf::exists(package_path));
bf::path package_path = root_path / pkgid;
ASSERT_FALSE(bf::exists(package_path));
ValidatePackage(pkgid, appid);
// Check delta modifications
ValidatePackage(pkgid, appid);
// Check delta modifications
- bf::path root_path = ci::GetRootAppPath();
+ bf::path root_path = ci::GetRootAppPath(false);
ASSERT_FALSE(bf::exists(root_path / pkgid / "res" / "wgt" / "DELETED"));
ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "ADDED"));
ValidateFileContentInPackage(pkgid, "res/wgt/MODIFIED", "2\n");
ASSERT_FALSE(bf::exists(root_path / pkgid / "res" / "wgt" / "DELETED"));
ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "ADDED"));
ValidateFileContentInPackage(pkgid, "res/wgt/MODIFIED", "2\n");
ValidatePackage(pkgid, appid);
// Check delta modifications
ValidatePackage(pkgid, appid);
// Check delta modifications
- bf::path root_path = ci::GetRootAppPath();
+ bf::path root_path = ci::GetRootAppPath(false);
ASSERT_FALSE(bf::exists(root_path / pkgid / "res" / "wgt" / "DELETED"));
ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "ADDED"));
ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "css" / "style.css")); // NOLINT
ASSERT_FALSE(bf::exists(root_path / pkgid / "res" / "wgt" / "DELETED"));
ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "ADDED"));
ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "css" / "style.css")); // NOLINT
if (arg.find("apps_rw/recovery-") != std::string::npos)
arg = ReadPkgidFromRecovery(arg);
if (ci::IsPackageInstalled(arg, ci::GetRequestMode())) {
if (arg.find("apps_rw/recovery-") != std::string::npos)
arg = ReadPkgidFromRecovery(arg);
if (ci::IsPackageInstalled(arg, ci::GetRequestMode())) {
- bf::path package_directory(ci::GetRootAppPath());
+ bf::path package_directory(ci::GetRootAppPath(false));
if (bf::exists(package_directory / arg / kTizenManifestLocation) &&
bf::exists(package_directory / arg / kHybridConfigLocation))
return true;
if (bf::exists(package_directory / arg / kTizenManifestLocation) &&
bf::exists(package_directory / arg / kHybridConfigLocation))
return true;