test/run: drop support for non-pipeline test cases

We were supporting downloading an image and checking its image info. We don't
want to rely on external resources, and we should not test images made by others.

Drop it.
This commit is contained in:
Tom Gundersen 2019-12-08 15:18:40 +01:00 committed by Lars Karlitski
parent cc04f92997
commit c090ab3812
2 changed files with 4 additions and 3838 deletions

File diff suppressed because it is too large Load diff

View file

@ -172,15 +172,12 @@ def run_osbuild(pipeline, store):
def run_test(case, store):
try:
if "compose" not in case:
print("skipping this test case")
if "pipeline" not in case:
print("skipping this test case, no pipeline given")
return True
if "pipeline" in case:
_, output_id = run_osbuild(case["pipeline"], store)
filename = os.path.join(store, "refs", output_id, case["compose"]["filename"])
else:
filename, _ = urllib.request.urlretrieve(case["url"])
_, output_id = run_osbuild(case["pipeline"], store)
filename = os.path.join(store, "refs", output_id, case["compose"]["filename"])
fn, ex = os.path.splitext(filename)
if ex == ".xz":