fix(tests): Fix bz2 tests

This commit is contained in:
Peter Fern 2025-11-02 11:21:25 +11:00
parent 921d688fd4
commit 75bca91334

View file

@ -59,9 +59,9 @@ func TestAssembleCommand(t *testing.T) {
name: "remote bz2", name: "remote bz2",
options: UploadOptions{ options: UploadOptions{
ImageURL: mustParseURL("https://example.com/image.bz2"), ImageURL: mustParseURL("https://example.com/image.bz2"),
ImageCompression: CompressionXZ, ImageCompression: CompressionBZ2,
}, },
want: "bash -c 'set -euo pipefail && wget --no-verbose -O - \"https://example.com/image.bz2\" | xz -cd | dd of=/dev/sda bs=4M && sync'", want: "bash -c 'set -euo pipefail && wget --no-verbose -O - \"https://example.com/image.bz2\" | bzip2 -cd | dd of=/dev/sda bs=4M && sync'",
}, },
{ {
name: "local qcow2", name: "local qcow2",