1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

test(nfpm): fix after update

This commit is contained in:
Carlos Alexandro Becker 2023-05-24 12:18:58 +00:00
parent 760aca268a
commit dbd4342078
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -454,8 +454,8 @@ func doTestRunPipeConventionalNameTemplate(t *testing.T, snapshot bool) {
prefix + "-1.0.0.armv6hl.rpm",
prefix + "-1.0.0.armv7hl.rpm",
prefix + "-1.0.0.i386.rpm",
prefix + "-1.0.0.mipshardfloat.rpm",
prefix + "-1.0.0.mipssoftfloat.rpm",
prefix + "-1.0.0.mips.rpm",
prefix + "-1.0.0.mips.rpm",
prefix + "-1.0.0.x86_64.rpm",
prefix + "-1.0.0.x86_64v2.rpm",
prefix + "-1.0.0.x86_64v3.rpm",
@ -470,10 +470,10 @@ func doTestRunPipeConventionalNameTemplate(t *testing.T, snapshot bool) {
prefix + "_1.0.0_armhf.deb",
prefix + "_1.0.0_armv7.apk",
prefix + "_1.0.0_i386.deb",
prefix + "_1.0.0_mipshardfloat.apk",
prefix + "_1.0.0_mipshardfloat.deb",
prefix + "_1.0.0_mipssoftfloat.apk",
prefix + "_1.0.0_mipssoftfloat.deb",
prefix + "_1.0.0_mips.apk",
prefix + "_1.0.0_mips.deb",
prefix + "_1.0.0_mips.apk",
prefix + "_1.0.0_mips.deb",
prefix + "_1.0.0_x86.apk",
prefix + "_1.0.0_x86_64.apk",
prefix + "_1.0.0_x86_64v2.apk",
@ -487,8 +487,8 @@ func doTestRunPipeConventionalNameTemplate(t *testing.T, snapshot bool) {
prefix + "-1.0.0-1-x86_64v2.pkg.tar.zst",
prefix + "-1.0.0-1-x86_64v3.pkg.tar.zst",
prefix + "-1.0.0-1-x86_64v4.pkg.tar.zst",
prefix + "-1.0.0-1-mipssoftfloat.pkg.tar.zst",
prefix + "-1.0.0-1-mipshardfloat.pkg.tar.zst",
prefix + "-1.0.0-1-mips.pkg.tar.zst",
prefix + "-1.0.0-1-mips.pkg.tar.zst",
}, pkg.Name, "package name is not expected")
require.Equal(t, "someid", pkg.ID())
require.ElementsMatch(t, []string{binPath}, sources(artifact.ExtraOr(*pkg, extraFiles, files.Contents{})))