If we're running inside mkosi sandbox, we don't parse the default
tools tree configuration, which this test depends on, so skip it
when running in the sandbox.
OutputFormat,
Verb,
config_parse_bytes,
+ in_sandbox,
parse_config,
parse_ini,
)
d = tmp_path
argv = ["--tools-tree=default"]
+ if in_sandbox():
+ pytest.skip("Cannot run test_tools() test within mkosi sandbox environment")
+
with resource_path(mkosi.resources) as resources, chdir(d):
_, tools, _ = parse_config(argv, resources=resources)
assert tools