mirror of
https://github.com/anchore/syft
synced 2024-09-20 14:11:54 +00:00
Update tests to not fail on Mac M1's. (#1730)
Closes #1673 Signed-off-by: Shane Dell <shanedell100@gmail.com>
This commit is contained in:
parent
dd30c99bc2
commit
661d256b85
1 changed files with 9 additions and 2 deletions
|
@ -1,7 +1,9 @@
|
|||
package source
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"runtime"
|
||||
"sort"
|
||||
"testing"
|
||||
|
||||
|
@ -689,6 +691,11 @@ func Test_imageAllLayersResolver_resolvesLinks(t *testing.T) {
|
|||
func TestAllLayersResolver_AllLocations(t *testing.T) {
|
||||
img := imagetest.GetFixtureImage(t, "docker-archive", "image-files-deleted")
|
||||
|
||||
arch := "x86_64"
|
||||
if runtime.GOARCH == "arm64" {
|
||||
arch = "aarch64"
|
||||
}
|
||||
|
||||
resolver, err := newAllLayersResolver(img)
|
||||
assert.NoError(t, err)
|
||||
|
||||
|
@ -799,9 +806,9 @@ func TestAllLayersResolver_AllLocations(t *testing.T) {
|
|||
"/lib/apk/db/triggers",
|
||||
"/lib/apk/exec",
|
||||
"/lib/firmware",
|
||||
"/lib/ld-musl-x86_64.so.1",
|
||||
fmt.Sprintf("/lib/ld-musl-%s.so.1", arch),
|
||||
"/lib/libapk.so.3.12.0",
|
||||
"/lib/libc.musl-x86_64.so.1",
|
||||
fmt.Sprintf("/lib/libc.musl-%s.so.1", arch),
|
||||
"/lib/libcrypto.so.3",
|
||||
"/lib/libssl.so.3",
|
||||
"/lib/libz.so.1",
|
||||
|
|
Loading…
Reference in a new issue