Skip to content

Commit

Permalink
Only add gcov flag when it's specified
Browse files Browse the repository at this point in the history
Solve problems running in environment not having gcov
  • Loading branch information
vxst authored May 6, 2024
1 parent 83238dd commit f184be4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spin/cmds/meson.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,10 @@ def test(
click.secho(
"Invoking `build` prior to running tests:", bold=True, fg="bright_green"
)
ctx.invoke(build_cmd, gcov=bool(gcov))
if gcov is not None:
ctx.invoke(build_cmd, gcov=bool(gcov))
else:
ctx.invoke(build_cmd)

package = cfg.get("tool.spin.package", None)
if (not pytest_args) and (not tests):
Expand Down

0 comments on commit f184be4

Please sign in to comment.