Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
amulet test fails sometimes #5
Comments
kwmonroe
closed this
in
ef4f815
Jun 9, 2016
|
On closer inspection, the warning should not have caused the command to return non-zero. There may be something else afoot here, though the stricter output grep shouldn't harm anything. |
johnsca
reopened this
Jun 9, 2016
|
Re-opened for further investigation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kwmonroe commentedJun 8, 2016
The test_java test isn't very smart:
https://github.com/juju-solutions/layer-openjdk/blob/master/tests/01-deploy.py#L26
The problem is, when we run this command on a unit unknown to our ~/.ssh/known_hosts, we get this garbage shoved in to the output:
A good run would instead look like this:
The fix should be simple enough... Adjust the cmd from this:
java -version 2>&1to
java -version 2>&1 | grep versionWhich would be good because it would scrub the output of any ssh warnings, and would ensure a version string comes back from "java -version". We only care that the
grepcomes back non-zero.