Repository: bigtop Updated Branches: refs/heads/master c765c3fde -> f04ac4519
BIGTOP-1399. add --help to alternative invocation to support newer Ubuntus Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/f04ac451 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/f04ac451 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/f04ac451 Branch: refs/heads/master Commit: f04ac45198b050169d3892f786ddda3f0eb766ca Parents: c765c3f Author: Roman Shaposhnik <[email protected]> Authored: Sat Aug 9 18:37:30 2014 -0700 Committer: Roman Shaposhnik <[email protected]> Committed: Sat Aug 9 18:37:30 2014 -0700 ---------------------------------------------------------------------- .../main/groovy/org/apache/bigtop/itest/posix/Alternative.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/f04ac451/bigtop-test-framework/src/main/groovy/org/apache/bigtop/itest/posix/Alternative.groovy ---------------------------------------------------------------------- diff --git a/bigtop-test-framework/src/main/groovy/org/apache/bigtop/itest/posix/Alternative.groovy b/bigtop-test-framework/src/main/groovy/org/apache/bigtop/itest/posix/Alternative.groovy index abfb770..b5f2c27 100644 --- a/bigtop-test-framework/src/main/groovy/org/apache/bigtop/itest/posix/Alternative.groovy +++ b/bigtop-test-framework/src/main/groovy/org/apache/bigtop/itest/posix/Alternative.groovy @@ -37,7 +37,7 @@ class Alternative { */ static private String listCmd; static { - int i = (new Shell()).exec("""update-alternatives 2>/dev/null | grep -q -- "--query" """).getRet(); + int i = (new Shell()).exec("""update-alternatives --help 2>/dev/null | grep -q -- "--query" """).getRet(); listCmd = (i == 0) ? "query" : "display"; }
