Skip to content

Commit

Permalink
tests: build both arm64 and amd64 disk.qcow2 images
Browse files Browse the repository at this point in the history
  • Loading branch information
mvo5 committed Dec 5, 2023
1 parent be54c65 commit 6263b72
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,20 @@ def config_json_fixture(output_path):

@pytest.mark.skipif(os.getuid() != 0, reason="needs root")
@pytest.mark.skipif(not testutil.has_executable("podman"), reason="need podman")
def test_smoke(output_path, config_json):
@pytest.mark.parametrize("arch", ["arm64", "amd64"])
def test_smoke(output_path, config_json, arch):
# build local container
subprocess.check_call([
"podman", "build",
"--arch", arch,
"-f", "Containerfile",
"-t", "osbuild-deploy-container-test",
])
cursor = testutil.journal_cursor()
# and run container to deploy an image into output/disk.qcow2
subprocess.check_call([
"podman", "run", "--rm",
"--arch", arch,
"--privileged",
"--security-opt", "label=type:unconfined_t",
"-v", f"{output_path}:/output",
Expand Down

0 comments on commit 6263b72

Please sign in to comment.