$ go build -v github.com/snapcore/snapd/... && go test -v github.com/snapcore/snapd/cmd
warning: "github.com/snapcore/snapd/..." matched no packages
warning: "github.com/snapcore/snapd/..." matched no packages
=== RUN Test
----------------------------------------------------------------------
FAIL: cmd_test.go:228: cmdSuite.TestExecInCoreSnap
cmd_test.go:231:
c.Check(cmd.ExecInCoreSnap, PanicMatches, `>exec of "[^"]+/potato" in tests<`)
... function func() = (func())(0x487ba0)
... expected string = ">exec of \"[^\"]+/potato\" in tests<"
... Function has not panicked
cmd_test.go:232:
c.Check(s.execCalled, Equals, 1)
... obtained int = 0
... expected int = 1
cmd_test.go:233:
c.Check(s.lastExecArgv0, Equals, filepath.Join(s.newCore, "/usr/lib/snapd/potato"))
... obtained string = ""
... expected string = "/tmp/check-1441573145745832705/8/snap/core/42/usr/lib/snapd/potato"
cmd_test.go:234:
c.Check(s.lastExecArgv, DeepEquals, os.Args)
... obtained []string = []string(nil)
... expected []string = []string{"/tmp/go-build039230312/github.com/snapcore/snapd/cmd/_test/cmd.test", "-test.v=true"}
cmd_test.go:235:
c.Check(s.lastExecEnvv, testutil.Contains, "SNAP_DID_REEXEC=1")
... container []string = []string(nil)
... elem string = "SNAP_DID_REEXEC=1"
2017/09/01 12:32:46 InternalToolPath can only be used from snapd, got: /usr/bin/potato
OOPS: 18 passed, 1 FAILED
--- FAIL: Test (0.02s)
FAIL
exit status 1
FAIL github.com/snapcore/snapd/cmd 0.022s