Merge lp:~axwalk/juju-core/null-provider-storage-testfailure into lp:~go-bot/juju-core/trunk
Proposed by
Andrew Wilkins
Status: | Merged |
---|---|
Approved by: | Andrew Wilkins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2153 |
Proposed branch: | lp:~axwalk/juju-core/null-provider-storage-testfailure |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
19 lines (+2/-3) 1 file modified
provider/null/environ_test.go (+2/-3) |
To merge this branch: | bzr merge lp:~axwalk/juju-core/null-provider-storage-testfailure |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+198674@code.launchpad.net |
Commit message
provider/null: fix intermittent test failure
The ssh command line options changed, so we
were checking for the wrong command line.
Made it a bit less fragile by doing a negated
grep.
Description of the change
provider/null: fix intermittent test failure
The ssh command line options changed, so we
were checking for the wrong command line.
Made it a bit less fragile by doing a negated
grep.
To post a comment you must log in.
Reviewers: mp+198674_ code.launchpad. net,
Message:
Please take a look.
Description:
provider/null: fix intermittent test failure
The ssh command line options changed, so we
were checking for the wrong command line.
Made it a bit less fragile by doing a negated
grep.
https:/ /code.launchpad .net/~axwalk/ juju-core/ null-provider- storage- testfailure/ +merge/ 198674
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/41230043/
Affected files (+4, -3 lines): null/environ_ test.go
A [revision details]
M provider/
Index: [revision details] 20131211131153- tlnqrzdhu609wts g
=== 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: provider/ null/environ_ test.go null/environ_ test.go' null/environ_ test.go 2013-10-21 21:49:04 +0000 null/environ_ test.go 2013-12-12 06:57:36 +0000 strapStorager( c *gc.C) {
=== modified file 'provider/
--- provider/
+++ provider/
@@ -102,13 +102,12 @@
func (s *environSuite) TestEnvironBoot
var sshScript = `
#!/bin/bash --norc
-if [ "$*" = "hostname -- bash" ]; then
+if echo "$*" | grep -q -v sudo; then
# We're executing bash inside ssh. Wait
# for input to be written before exiting.
head -n 1 > /dev/null
+ echo JUJU-RC: $RC
fi
-exec 0<&- # close stdin
-echo JUJU-RC: $RC
`[1:]
bin := c.MkDir()
ssh := filepath.Join(bin, "ssh")