aboutsummaryrefslogtreecommitdiff
path: root/bigtop-test-framework
diff options
context:
space:
mode:
authorRoman Shaposhnik <rvs@apache.org>2014-08-09 18:37:30 -0700
committerRoman Shaposhnik <rvs@apache.org>2014-08-09 18:37:30 -0700
commitf04ac45198b050169d3892f786ddda3f0eb766ca (patch)
tree7bfb4d081a0ccfc2b8bc4c9f59aae6e3eabe09eb /bigtop-test-framework
parentc765c3fde701293053c4a16c487827351fd236ad (diff)
BIGTOP-1399. add --help to alternative invocation to support newer Ubuntus
Diffstat (limited to 'bigtop-test-framework')
-rw-r--r--bigtop-test-framework/src/main/groovy/org/apache/bigtop/itest/posix/Alternative.groovy2
1 files changed, 1 insertions, 1 deletions
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 abfb7707..b5f2c278 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";
}