Enable KUnit testing on raviole userdebug & eng build target.
Add kunit.enable=1 to boot command line
Bug: 337797668
Flag: TEST_ONLY
Change-Id: I3334316c6b41e0cd1a4dd5fded32f9c3c302ee9a
diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk
index 8eb9104..a5e752d 100644
--- a/BoardConfig-common.mk
+++ b/BoardConfig-common.mk
@@ -49,6 +49,11 @@
BOARD_KERNEL_CMDLINE += swiotlb=noforce
BOARD_BOOTCONFIG += androidboot.boot_devices=14700000.ufs
+# Enable KUnit for userdebug and eng builds
+ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
+ BOARD_KERNEL_CMDLINE += kunit.enable=1
+endif
+
TARGET_NO_BOOTLOADER := true
TARGET_NO_RADIOIMAGE := true
BOARD_PREBUILT_BOOTIMAGE := $(wildcard $(TARGET_KERNEL_DIR)/boot.img)