summaryrefslogtreecommitdiff
diff options
authorMichael Vogt <mvo@ubuntu.com>2018-04-05 22:52:43 +0200
committerMichael Vogt <mvo@ubuntu.com>2018-04-05 22:52:46 +0200
commitd5d8b7ba52fbf255221cfe7386a2fd57efa96a73 (patch)
tree356ad1ca850da370959c3d0778421e1662afa8a6
parent7b24083095f23ecb40207fc233c69f7d1b2a0597 (diff)
errtracker: make TestJournalErrorSilentError work on gccgofix-cgo-test
The error from SIGTERM is slightly different with gccgo so we need to adjust the TestJournalErrorSilentError test for this See https://launchpadlibrarian.net/363432841/buildlog_ubuntu-xenial-powerpc.snapd_2.32.3_BUILDING.txt.gz for the powerpc build failure.
-rw-r--r--errtracker/errtracker_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/errtracker/errtracker_test.go b/errtracker/errtracker_test.go
index dfc203c251..acfc98c635 100644
--- a/errtracker/errtracker_test.go
+++ b/errtracker/errtracker_test.go
@@ -426,7 +426,7 @@ func (s *ErrtrackerTestSuite) TestJournalError(c *C) {
func (s *ErrtrackerTestSuite) TestJournalErrorSilentError(c *C) {
jctl := testutil.MockCommand(c, "journalctl", "kill $$")
defer jctl.Restore()
- c.Check(errtracker.JournalError(), Equals, "error: signal: terminated")
+ c.Check(errtracker.JournalError(), Matches, "error: signal: [Tt]erminated")
c.Check(jctl.Calls(), DeepEquals, [][]string{
{"journalctl", "-b", "--priority=warning..err", "--lines=1000"},
})