X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=t%2Ftest-web.sh;h=74e0f2bd4b3d6207622b1114d74614706107f3ea;hb=bf67f94dd4f4096de4eee07a7dc377d6c889a016;hp=02d17c659f8f0cd023ea53474ddc01dc895d97cb;hpb=56b22c04992690670fd2506d34ae6d18b573b21e;p=bup.git diff --git a/t/test-web.sh b/t/test-web.sh index 02d17c6..74e0f2b 100755 --- a/t/test-web.sh +++ b/t/test-web.sh @@ -42,7 +42,7 @@ if test $? -ne 7; then run_test='' fi -if ! python -c 'import tornado' 2> /dev/null; then +if ! bup-python -c 'import tornado' 2> /dev/null; then WVSTART 'unable to import tornado; skipping test' run_test='' fi @@ -61,6 +61,8 @@ if test -n "$run_test"; then WVPASS curl --unix-socket ./socket \ 'http://localhost/%C2%A1excitement%21/latest/data' > result + WVPASSEQ "$(curl --unix-socket ./socket http://localhost/static/styles.css)" \ + "$(cat "$TOP/lib/web/static/styles.css")" WVPASSEQ '¡excitement!' "$(cat result)" WVPASS kill -s TERM "$web_pid"