On Debian the reported build date of a squashfs file is about two days
back from what the test expected.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0008-snap-squashsh-skip-TestBuildDate-on-Debian.patch
"github.com/snapcore/snapd/dirs"
"github.com/snapcore/snapd/osutil"
+ "github.com/snapcore/snapd/release"
"github.com/snapcore/snapd/snap/snapdir"
"github.com/snapcore/snapd/snap/squashfs"
"github.com/snapcore/snapd/testutil"
}
func (s *SquashfsTestSuite) TestBuildDate(c *C) {
+ if release.ReleaseInfo.ID == "debian" {
+ c.Skip("on Debian the reported build time was (presumably) that of source files")
+ }
+
// make a directory
d := c.MkDir()
// set its time waaay back