1
0
mirror of https://github.com/containers/buildah.git synced 2026-02-05 09:45:38 +01:00

conformance test: ignore file type bits when comparing layers

When comparing layer payloads during conformance tests, mask off any
file type bits that the tar headers in the layers might have included.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
Nalin Dahyabhai
2024-01-09 16:42:58 -05:00
committed by Chris Evich
parent 92ad069b2b
commit 22f5bf6248

View File

@@ -9,6 +9,7 @@ import (
"flag"
"fmt"
"io"
"io/fs"
"os"
"path/filepath"
"reflect"
@@ -789,7 +790,7 @@ func fsHeaderForEntry(hdr *tar.Header) FSHeader {
Name: hdr.Name,
Linkname: hdr.Linkname,
Size: hdr.Size,
Mode: hdr.Mode,
Mode: (hdr.Mode & int64(fs.ModePerm)),
UID: hdr.Uid,
GID: hdr.Gid,
ModTime: hdr.ModTime,