]> arthur.barton.de Git - bup.git/commitdiff
test-web: skip tests if no tornado
authorRob Browning <rlb@defaultvalue.org>
Mon, 13 Jun 2016 05:00:32 +0000 (00:00 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 2 Jul 2016 16:51:07 +0000 (11:51 -0500)
Thanks to ilovezfs for reporting the problem and helping with the fix.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
t/test-web.sh

index 45eac5e042479d19c2f6265a8467c85a01835e84..eedf87df44db27e88d9640d87745dc82a01c42f7 100755 (executable)
@@ -41,7 +41,12 @@ if test $? -ne 7; then
     WVSTART 'curl does not appear to support --unix-socket; skipping test'
     run_test=''
 fi
-    
+
+if ! python -c 'import tornado' 2> /dev/null; then
+    WVSTART 'unable to import tornado; skipping test'
+    run_test=''
+fi
+
 if test -n "$run_test"; then
     WVSTART 'web'
     WVPASS bup init