test-help.sh: Skip trivial-httpd if enabled
authorSimon McVittie <smcv@collabora.com>
Fri, 15 Sep 2017 15:05:48 +0000 (16:05 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 15 Sep 2017 19:28:25 +0000 (19:28 +0000)
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 <smcv@collabora.com>
Closes: #1177
Approved by: jlebon

tests/test-help.sh

index 75fe0c11e326e8335f9718913fadebe898e2fdac..ad74aaf90f3859958a095b73d68bc9ca6ddb90cf 100755 (executable)
@@ -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
 }