Skip to content

BATS tests fail when qemu-img is not installed #4144

@jandubois

Description

@jandubois

I tried make bats on local mac, and it fails with error:

 ✗ create dummy instance [176]
   (in test file hack/bats/tests/protect.bats, line 18)
     `run -0 create_dummy_instance "$NAME" '.disk = "1M"'' failed, expected exit code 0, got 1
   time="2025-10-06T11:28:17+09:00" level=info msg="Terminal is not available, proceeding without opening an editor"
   time="2025-10-06T11:28:17+09:00" level=info msg="Attempting to download the image" arch=aarch64 digest= location=/etc/profile
   time="2025-10-06T11:28:17+09:00" level=info msg="Downloaded the image from \"/etc/profile\""
   time="2025-10-06T11:28:17+09:00" level=info msg="Converting \"/Users/norio/.lima-bats/dummy/basedisk\" (raw) to a raw disk \"/Users/norio/.lima-bats/dummy/diffdisk\""
   time="2025-10-06T11:28:17+09:00" level=info msg="Expanding to 1MiB"
   time="2025-10-06T11:28:17+09:00" level=fatal msg="failed to convert \"/Users/norio/.lima-bats/dummy/basedisk\" to a raw disk \"/Users/norio/.lima-bats/dummy/diffdisk\": open /Users/norio/.lima-bats/dummy/diffdisk: permission denied"

Originally posted by @norio-nomura in #3969 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions