tests/image: drop the qemu-extract boot type
Previous commit switched the ami output type to qemu boot type, therefore qemu-extract is not needed anymore.
This commit is contained in:
parent
83a3a8d821
commit
8f351026d8
2 changed files with 0 additions and 10 deletions
|
|
@ -291,8 +291,6 @@ func testBootUsingAWS(t *testing.T, imagePath string) {
|
|||
func testBoot(t *testing.T, imagePath string, bootType string, outputID string) {
|
||||
switch bootType {
|
||||
case "qemu":
|
||||
fallthrough
|
||||
case "qemu-extract":
|
||||
testBootUsingQemu(t, imagePath)
|
||||
|
||||
case "nspawn":
|
||||
|
|
|
|||
|
|
@ -54,14 +54,6 @@ def main(test_case, store):
|
|||
if boot_type != "nspawn-extract":
|
||||
output_id = run_osbuild(test_case["manifest"], store)
|
||||
image_file = os.path.join(store, "refs", output_id, test_case["compose-request"]["filename"])
|
||||
|
||||
# we don't yet support image-info on directory trees
|
||||
if boot_type in {"qemu-extract"}:
|
||||
fn, ex = os.path.splitext(image_file)
|
||||
if ex == ".xz":
|
||||
with open(fn, "w") as f:
|
||||
subprocess.run(["xz", "--decompress", "--stdout", image_file], stdout=f)
|
||||
image_file = fn
|
||||
test_case["image-info"] = json.loads(get_subprocess_stdout(["tools/image-info", image_file], encoding="utf-8"))
|
||||
|
||||
return test_case
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue