-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--prep-artifacts-for-testing causes relative BOARD_DIR path #86651
Comments
Hi @stgloorious! We appreciate you submitting your first issue for our open-source project. 🌟 Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙 |
To debug, I added
Which checks whether In the
But for whatever reason,
instead of the expected I don't understand CMake well enough to have a clue what is going on here. |
This is expected behaviour and part of what this option does. This is needed to be able to use the generated artifacts on other systems, so we sanitize the files to make them useable somewhere else. Using absolute paths here will not work in many scenarios (my $HOME on system A will not exist on system B under a different user...) |
Thank you @nashif for your quick response. I see your point. This was not clear to me because this seems to be the only path where this happens. All other paths in So this means I can only unpack |
Normally,
BOARD_DIR
contains a full, absolute path and is stored inCMakeCache.txt
, but when using--prep-artifacts-for-testing
, this path becomes relative. This fails the twister invocation if the application directory is separate from thezephyr
directory. Specifying--board-root
seems to have no effect.To Reproduce
--prep-artifacts-for-testing
flag, e.g.,BOARD_DIR
intwister-out/unit_testing_unit_testing/host/tests/unit/crc/utilities.crc/CMakeCache.txt
is a relative path:Expected behavior
An absolute path, just when running
west twister -T tests/unit/crc
which showsin
twister-out/unit_testing_unit_testing/host/tests/unit/crc/utilities.crc/CMakeCache.txt
.Impact
Because of this, I cannot run exported tests on a CI runner.
Environment:
The text was updated successfully, but these errors were encountered: