zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.79k stars 6.58k forks source link

sysbuild: prep-artifacts-for-testing does not support systebuild well #67238

Closed hakehuang closed 8 months ago

hakehuang commented 9 months ago

Describe the bug if run with below build command line, the build binary is removed from pacakge

scripts/twister --prep-artifacts-for-testing --package-artifacts test_twister_test_only.tar.gz -p nrf5340dk_nrf5340_cpuapp  -T samples/drivers/mbox/

Please also mention any information which could help others to understand the problem you're facing:

To Reproduce Steps to reproduce the behavior:

scripts/twister --prep-artifacts-for-testing --package-artifacts test_twister_test_only.tar.gz -p nrf5340dk_nrf5340_cpuapp  -T samples/drivers/mbox/

Expected behavior the binary with sysbuild staff can be kept

Impact --prep-artifacts-for-testing

Environment (please complete the following information):

szczys commented 9 months ago

I can confirm that I'm seeing the same behavior. The result of this operation is an archive missing all binaries, as shown by this tree:

➜ tree -a twister-out/
twister-out/
├── nrf52840dk_nrf52840
│   └── sample.golioth.fw_update.sysbuild
│       ├── build.log
│       ├── build.ninja
│       ├── CMakeCache.txt
│       ├── CMakeFiles
│       │   └── rules.ninja
│       └── zephyr
│           └── .config
├── testplan.json
└── twister.json