Skip to content

Commit

Permalink
Fix failing test when run on arm64/aarch64 systems - this was a bug i…
Browse files Browse the repository at this point in the history
…n the test suite
  • Loading branch information
jordansissel committed Feb 7, 2023
1 parent 066b9b5 commit ad6b18a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/fpm/package/deb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@

it "should default to native" do
# Convert kernel name to debian name
expected = native == "x86_64" ? "amd64" : native
expected = if native == "x86_64"
"amd64"
elsif native == "aarch64"
"arm64"
else
native
end
expect(subject.architecture).to(be == expected)
end
end
Expand Down

0 comments on commit ad6b18a

Please sign in to comment.