Merge lp:~thumper/juju-core/fix-test-creating-file-in-tree into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | John A Meinel |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1281 |
Proposed branch: | lp:~thumper/juju-core/fix-test-creating-file-in-tree |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
36 lines (+3/-2) 1 file modified
cmd/juju/plugin_test.go (+3/-2) |
To merge this branch: | bzr merge lp:~thumper/juju-core/fix-test-creating-file-in-tree |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+169324@code.launchpad.net |
Commit message
Fix the cmd/juju tests.
One of the tests was emitting an error, but the suite wasn't
a logging suite, so it was being output to stderr.
Also, there was a file called 2 created in the directory. This
was due to an echo >2 line in a plugin test script. This was
wrong anyway, we don't emit missing description as it fails other
tests. This has been removed.
Description of the change
Fix the cmd/juju tests.
One of the tests was emitting an error, but the suite wasn't
a logging suite, so it was being output to stderr.
Also, there was a file called 2 created in the directory. This
was due to an echo >2 line in a plugin test script. This was
wrong anyway, we don't emit missing description as it fails other
tests. This has been removed.
Reviewers: mp+169324_ code.launchpad. net,
Message:
Please take a look.
Description:
Fix the cmd/juju tests.
One of the tests was emitting an error, but the suite wasn't
a logging suite, so it was being output to stderr.
Also, there was a file called 2 created in the directory. This
was due to an echo >2 line in a plugin test script. This was
wrong anyway, we don't emit missing description as it fails other
tests. This has been removed.
https:/ /code.launchpad .net/~thumper/ juju-core/ fix-test- creating- file-in- tree/+merge/ 169324
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/10253053/
Affected files: plugin_ test.go
A [revision details]
M cmd/juju/
Index: [revision details] 20130613115315- e58eqa122kc07o1 a
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-
+New revision: <email address hidden>
Index: cmd/juju/ plugin_ test.go plugin_ test.go' plugin_ test.go 2013-06-13 10:56:08 +0000 plugin_ test.go 2013-06-14 02:08:04 +0000
=== modified file 'cmd/juju/
--- cmd/juju/
+++ cmd/juju/
@@ -17,6 +17,7 @@
)
type PluginSuite struct { LoggingSuite PluginSuite{ })
+ testing.
oldPath string
home *testing.FakeHome
}
@@ -24,6 +25,7 @@
var _ = Suite(&
func (suite *PluginSuite) SetUpTest(c *C) { ite.SetUpTest( c) MakeSampleHome( c) "PATH", "/bin:" +testing. HomePath( )) home.Restore( ) "PATH", suite.oldPath) ite.TearDownTes t(c)
+ suite.LoggingSu
suite.oldPath = os.Getenv("PATH")
suite.home = testing.
os.Setenv(
@@ -32,6 +34,7 @@
func (suite *PluginSuite) TearDownTest(c *C) {
suite.
os.Setenv(
+ suite.LoggingSu
}
func (*PluginSuite) TestFindPlugins(c *C) {
@@ -195,8 +198,6 @@
fi
echo "{{.Name}} description"
exit {{.ExitStatus}}
-else
- echo "No --description" >2
fi
if [ "$1" = "--help" ]; then