test: use and require explicit exports

Require all the tests that compile a manifest to either specify
checkpoints or exports. Convert all the tests that were relying
on implicit exports with v1 manifests to use explicit exports.
This commit is contained in:
Christian Kellner 2021-08-17 09:07:42 +00:00 committed by Tom Gundersen
parent 22d1d46ec1
commit 7ae4a7e785
4 changed files with 22 additions and 12 deletions

View file

@ -288,6 +288,9 @@ class OSBuild(contextlib.AbstractContextManager):
Returns the build result as dictionary.
"""
if checkpoints is None and exports is None:
raise ValueError("Need `checkpoints` or `exports` argument")
if output_dir is None:
output_dir_context = tempfile.TemporaryDirectory(dir="/var/tmp")
else: