summaryrefslogtreecommitdiff
path: root/test/lib/completions/lvdisplay.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/completions/lvdisplay.exp')
-rw-r--r--test/lib/completions/lvdisplay.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/completions/lvdisplay.exp b/test/lib/completions/lvdisplay.exp
index 6fa9c294..5e8c3210 100644
--- a/test/lib/completions/lvdisplay.exp
+++ b/test/lib/completions/lvdisplay.exp
@@ -11,7 +11,9 @@ proc teardown {} {
setup
-assert_complete_any "lvdisplay --"
+if {[assert_exec {lvdisplay --help} "" "" "untested"]} { # may fail as non-root
+ assert_complete_any "lvdisplay --"
+}
sync_after_int