From: Simon McVittie Date: Fri, 15 Sep 2017 15:05:48 +0000 (+0100) Subject: test-help.sh: Skip trivial-httpd if enabled X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~31^2~72 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2f22e5b3599a216f557c9c63eab5494ccd9e2a06;p=ostree.git test-help.sh: Skip trivial-httpd if enabled Because it runs a binary in ${libexecdir}, it will only work if libostree was already installed, which makes the build-time test fail. It also doesn't produce the output we expect: its usage mechanism mentions "ostree-trivial-httpd", not "ostree trivial-httpd". Signed-off-by: Simon McVittie Closes: #1177 Approved by: jlebon --- diff --git a/tests/test-help.sh b/tests/test-help.sh index 75fe0c11..ad74aaf9 100755 --- a/tests/test-help.sh +++ b/tests/test-help.sh @@ -75,7 +75,16 @@ test_recursive() { assert_file_empty out for subcmd in $builtins; do - test_recursive "$cmd $subcmd" + case "$subcmd" in + (trivial-httpd) + # Skip trivial-httpd if enabled, it doesn't work + # uninstalled (and also doesn't produce the output + # we expect). + ;; + (*) + test_recursive "$cmd $subcmd" + ;; + esac done fi }