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:
committed by
Chris Evich
parent
92ad069b2b
commit
22f5bf6248
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user