diff options
| author | Michael Vogt <mvo@ubuntu.com> | 2018-04-05 22:52:43 +0200 |
|---|---|---|
| committer | Michael Vogt <mvo@ubuntu.com> | 2018-04-05 22:52:46 +0200 |
| commit | d5d8b7ba52fbf255221cfe7386a2fd57efa96a73 (patch) | |
| tree | 356ad1ca850da370959c3d0778421e1662afa8a6 | |
| parent | 7b24083095f23ecb40207fc233c69f7d1b2a0597 (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.go | 2 |
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"}, }) |
