suite.TestRunCmd shows script failure
Bug #1471936 reported by
Curtis Hovey
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Invalid
|
Undecided
|
Unassigned |
Bug Description
suite.TestRunCmd and suite.TestRunCmdErr failed on windows
http://
http://
Changed in juju-core: | |
status: | Incomplete → Invalid |
To post a comment you must log in.
This is an example
FAIL: plugin_test.go:158: suite.TestRunCmd
plugin_test.go:168: strings. TrimSpace( string( out)), gc.DeepEquals, m.stdout) \admini~ 1\\appdata\ \local\ \temp\\ tmpddmpf8\ \gogo\\ src\\github. com\\juju\ \juju\\ process\ \plugin> echo ! (int=0) 1>&2 \r\n" + \admini~ 1\\appdata\ \local\ \temp\\ tmpddmpf8\ \gogo\\ src\\github. com\\juju\ \juju\\ process\ \plugin> echo \"!s(MISSING)\" \r\n" + \"\r\n" + \admini~ 1\\appdata\ \local\ \temp\\ tmpddmpf8\ \gogo\\ src\\github. com\\juju\ \juju\\ process\ \plugin> exit !d(MISSING)"
c.Assert(
... obtained string = "" +
... "c:\\users\
... "\r\n" +
... "c:\\users\
... "\"!s(MISSING)
... "\r\n" +
... "c:\\users\
... 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