Skip to content
Snippets Groups Projects
Commit 3ddebb37 authored by Chase Qi's avatar Chase Qi
Browse files

.oniro-ci: enable wic image debug mode for LAVA testing


LAVA needs a writable directory to deploy test cases, and many test
cases only work with root user.

The debug mode can be disabled by overwriting the
CI_ONIRO_BB_LOCAL_CONF_plus_equals_INHERIT variable at build job level.

Signed-off-by: default avatarChase Qi <chase.qi@linaro.org>
parent e7730752
No related branches found
No related tags found
1 merge request!181.oniro-ci: enable wic image debug mode for LAVA testing
......@@ -162,6 +162,8 @@
| sed -e 's/^CI_ONIRO_BB_LOCAL_CONF_plus_equals_//g' -e 's/"/\\"/g' -e 's/=/ += "/g' -e 's/$/"/g' \
| sort \
| tee -a conf/local.conf )
# Print local conf for debugging.
- grep -E '^[^#]' conf/local.conf
# Sanity check: disallow using public build cache with a specific setting
# in local.conf. The list of settings may grow over time.
......@@ -299,6 +301,11 @@
.build-wic-image:
extends: .build-image
variables:
# cve-check is enabled in the .bitbake-workspace job. Append
# oniro-debug-linux for all wic image build jobs to enable root login which
# is required in LAVA test jobs. The variable can be overwritten in build
# job level for builds that require non-root user.
CI_ONIRO_BB_LOCAL_CONF_plus_equals_INHERIT: "cve-check oniro-debug-linux"
CI_ONIRO_JOB_ARTIFACTS: "*.wic.* *.bmap"
script:
- !reference [.build-image, script]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment