You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/big_ssd/keithshort/zephyrproject/zephyr/./scripts/twister", line 214, in <module>
ret = main(options)
^^^^^^^^^^^^^
File "/big_ssd/keithshort/zephyrproject/zephyr/scripts/pylib/twister/twisterlib/twister_main.py", line 205, in main
coverage_completed = run_coverage(tplan, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/big_ssd/keithshort/zephyrproject/zephyr/scripts/pylib/twister/twisterlib/coverage.py", line 351, in run_coverage
coverage_completed = coverage_tool.generate(options.outdir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/big_ssd/keithshort/zephyrproject/zephyr/scripts/pylib/twister/twisterlib/coverage.py", line 122, in generate
ret = self._generate(outdir, coveragelog)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/big_ssd/keithshort/zephyrproject/zephyr/scripts/pylib/twister/twisterlib/coverage.py", line 282, in _generate
subprocess.call(["gcovr", "-r", self.base_dir, "--gcov-executable",
File "/usr/lib/python3.11/subprocess.py", line 389, in call
with Popen(*popenargs, **kwargs) as p:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.11/subprocess.py", line 1883, in _execute_child
self.pid = _fork_exec(
^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not NoneType
The text was updated successfully, but these errors were encountered:
Fix an exception when running coverage using gcov or llvm-cov.
Fixeszephyrproject-rtos/zephyr#66897
(cherry picked from commit f6a7895)
Original-Signed-off-by: Keith Short <keithshort@google.com>
GitOrigin-RevId: f6a7895
Change-Id: I17adb06f0d6bff407201064d052a99f6c2bbe981
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5148258
Reviewed-by: Keith Short <keithshort@chromium.org>
Tested-by: Fabio Baltieri <fabiobaltieri@google.com>
Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
Reviewed-by: Tristan Honscheid <honscheid@google.com>
Describe the bug
Running twister to generate coverage against a non-native board causes an exception.
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: