From: Zygmunt Krynicki Date: Mon, 21 Jan 2019 15:54:44 +0000 (+0100) Subject: snap/squashsh: skip TestBuildDate on Debian X-Git-Tag: archive/raspbian/2.37-3+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d81a77142789224bd094006d721250ad4fb7475a;p=snapd.git snap/squashsh: skip TestBuildDate on Debian 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 Gbp-Pq: Name 0008-snap-squashsh-skip-TestBuildDate-on-Debian.patch --- diff --git a/snap/squashfs/squashfs_test.go b/snap/squashfs/squashfs_test.go index 61613e7a..70f52c23 100644 --- a/snap/squashfs/squashfs_test.go +++ b/snap/squashfs/squashfs_test.go @@ -35,6 +35,7 @@ import ( "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" @@ -590,6 +591,10 @@ func (s *SquashfsTestSuite) TestUnsquashfsStderrWriter(c *C) { } 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