=== RUN Test
----------------------------------------------------------------------
FAIL: runner_test.go:1148: runnerSuite.TestNextNotFound
runner_test.go:1179:
c.Check(string(data), Equals, expected)
... obtained string = "{\"device\":{\"brand\":\"my-brand\",\"model\":\"my-model\"},\"time-lower-bound\":\"2017-09-05T16:28:58Z\"}\n"
... expected string = "{\"device\":{\"brand\":\"my-brand\",\"model\":\"my-model\"},\"time-lower-bound\":\"2017-09-05T16:28:58Z\"}"
----------------------------------------------------------------------
FAIL: runner_test.go:1182: runnerSuite.TestNextSaveStateError
runner_test.go:1211:
c.Check(err, ErrorMatches, `cannot save repair state:.*`)
... error string = "open /tmp/check-7329623210662631043/22/var/lib/snapd/repair/repair.json.86fL3Kdb7P1p: permission denied"
... regex string = "cannot save repair state:.*"
----------------------------------------------------------------------
FAIL: runner_test.go:695: runnerSuite.TestSaveState
runner_test.go:713:
c.Check(string(data), Equals, `{"device":{"brand":"my-brand","model":"my-model"},"sequences":{"canonical":[{"sequence":1,"revision":3,"status":0}]},"time-lower-bound":"2017-08-11T15:49:49Z"}`)
... obtained string = "{\"device\":{\"brand\":\"my-brand\",\"model\":\"my-model\"},\"sequences\":{\"canonical\":[{\"sequence\":1,\"revision\":3,\"status\":0}]},\"time-lower-bound\":\"2017-08-11T15:49:49Z\"}\n"
... expected string = "{\"device\":{\"brand\":\"my-brand\",\"model\":\"my-model\"},\"sequences\":{\"canonical\":[{\"sequence\":1,\"revision\":3,\"status\":0}]},\"time-lower-bound\":\"2017-08-11T15:49:49Z\"}"
----------------------------------------------------------------------
FAIL: runner_test.go:673: runnerSuite.TestSaveStateFail
runner_test.go:692:
c.Check(err, ErrorMatches, `cannot save repair state:.*`)
... error string = "open /tmp/check-7329623210662631043/34/var/lib/snapd/repair/repair.json.YmfsHqqTYQK7: permission denied"
... regex string = "cannot save repair state:.*"
OOPS: 36 passed, 4 FAILED
--- FAIL: Test (0.28s)
FAIL
FAIL github.com/snapcore/snapd/cmd/snap-repair 0.372s