zephyr/scripts/pylib
Diego Elio Pettenò d9fe63b188 twister: increase resilience when running outside of git.
While the code already includes some provisions to allow running outside
of a git checkout, attempting that right now causes a failure to generate
the XML report, as the JSON report creates a null `zephyr_version` field.

The reason for that is that the original code doesn't set `self.version`
when the subprocess returns a non-zero status (and also doesn't log.)

Instead of having to set `self.version` for all failure cases, initialize
it to the failure state, and log if it hasn't changed from that.

Signed-off-by: Diego Elio Pettenò <flameeyes@meta.com>
2023-08-22 14:42:51 +02:00
..
build_helpers scripts: pylib: remove west log dependency from domains.py 2022-11-14 10:12:31 +00:00
pytest-twister-harness twister: pytest: Added fixture for mcumgr with unittests 2023-07-17 16:23:59 -04:00
twister twister: increase resilience when running outside of git. 2023-08-22 14:42:51 +02:00