Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad7cfb56 authored by Jooyung Han's avatar Jooyung Han
Browse files

apex_sepolicy_tests only if default payload type is ext4

apex_sepolicy_tests relies on `deapexer list -Z`, which is only
available to ext4 type.

Hence, when building with other type, it logs error messages like:

  erofs is not supported for `list`.

Until deapexer supports the feature, let's run the test for ext4.

Bug: 353896817
Test: PRODUCT_DEFAULT_APEX_PAYLOAD_TYPE=erofs m droid
Change-Id: Iff5f3b77136a303976d1aec992d048240c1adf52
parent 3dc4dfbc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5176,6 +5176,8 @@ INTERNAL_ALLIMAGES_FILES := \
# Run apex_sepolicy_tests for all installed APEXes

ifeq (,$(TARGET_BUILD_UNBUNDLED))
# TODO(b/353896817) apex_sepolicy_tests supports only ext4
ifeq (ext4,$(PRODUCT_DEFAULT_APEX_PAYLOAD_TYPE))
intermediate := $(call intermediates-dir-for,PACKAGING,apex_sepolicy_tests)
apex_dirs := \
  $(TARGET_OUT)/apex/% \
@@ -5215,6 +5217,7 @@ droid_targets: run_apex_sepolicy_tests

apex_files :=
intermediate :=
endif # PRODUCT_DEFAULT_APEX_PAYLOAD_TYPE
endif # TARGET_BUILD_UNBUNDLED

# -----------------------------------------------------------------