generate-test-cases: don't build images unless we intend to run image-info

For tarballs, this is currently not supported, so no point in generating
the images in the first place. This will still be done during testing to
boot-test them.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2020-03-13 22:50:41 +01:00
parent 2486f329e4
commit 2220a76acf

View file

@ -62,10 +62,10 @@ def main(compose_request, store):
"checksums": rpmmd["checksums"]
}
output_id = run_osbuild(test_case["manifest"], store)
image_file = os.path.join(store, "refs", output_id, compose_request["filename"])
if boot != "nspawn-extract":
output_id = run_osbuild(test_case["manifest"], store)
image_file = os.path.join(store, "refs", output_id, compose_request["filename"])
# we don't yet support image-info on directory trees
if boot == "qemu-extract":
fn, ex = os.path.splitext(image_file)