Comment 1 for bug 1471936

Revision history for this message
Curtis Hovey (sinzui) wrote :

This is an example

FAIL: plugin_test.go:158: suite.TestRunCmd

plugin_test.go:168:
    c.Assert(strings.TrimSpace(string(out)), gc.DeepEquals, m.stdout)
... obtained string = "" +
... "c:\\users\\admini~1\\appdata\\local\\temp\\tmpddmpf8\\gogo\\src\\github.com\\juju\\juju\\process\\plugin>echo ! (int=0) 1>&2 \r\n" +
... "\r\n" +
... "c:\\users\\admini~1\\appdata\\local\\temp\\tmpddmpf8\\gogo\\src\\github.com\\juju\\juju\\process\\plugin>echo \"!s(MISSING)\" \r\n" +
... "\"!s(MISSING)\"\r\n" +
... "\r\n" +
... "c:\\users\\admini~1\\appdata\\local\\temp\\tmpddmpf8\\gogo\\src\\github.com\\juju\\juju\\process\\plugin>exit !d(MISSING)"
... expected string = "foo!"

----------------------------------------------------------------------
FAIL: plugin_test.go:173: suite.TestRunCmdErr

plugin_test.go:183:
    c.Assert(err, gc.ErrorMatches, "exit status 1: foo!")
... value = nil
... regex string = "exit status 1: foo!"
... Error value is nil