summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkilesh Kailash <akailash@google.com>2022-07-12 05:23:48 +0000
committerAkilesh Kailash <akailash@google.com>2022-07-12 17:57:25 +0000
commit299717115eb2bce20c5b74346903ed39eaaef675 (patch)
tree7bf53a76e069a19d8063942b33eb7949fc1f9b3b
parent621c74c06398074f0f7daefd713d5f3328e9a9d4 (diff)
downloadcore-299717115eb2bce20c5b74346903ed39eaaef675.tar.gz
libsnapshot: Fix vts_libsnapshot_test.SnapshotUpdateTest#FullUpdateFlow
Check if compression feature is enabled. Bug: 238143011 Test: OTA Signed-off-by: Akilesh Kailash <akailash@google.com> Change-Id: I77663799a5371f1de8b4e29d7c777a24249d1b7b Ignore-AOSP-First: already present in aosp/master
-rw-r--r--fs_mgr/libsnapshot/snapshot_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs_mgr/libsnapshot/snapshot_test.cpp b/fs_mgr/libsnapshot/snapshot_test.cpp
index 6a348b4e5..c145da718 100644
--- a/fs_mgr/libsnapshot/snapshot_test.cpp
+++ b/fs_mgr/libsnapshot/snapshot_test.cpp
@@ -2755,6 +2755,10 @@ bool IsDaemonRequired() {
return false;
}
+ if (!IsCompressionEnabled()) {
+ return false;
+ }
+
const std::string UNKNOWN = "unknown";
const std::string vendor_release =
android::base::GetProperty("ro.vendor.build.version.release_or_codename", UNKNOWN);