From d2c3ab5851faf1791059685423e521f579ae5499 Mon Sep 17 00:00:00 2001 From: zhangshengqi Date: Tue, 21 Dec 2021 15:18:19 +0800 Subject: [PATCH] Update webget_t.sh --- tests/webget_t.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/webget_t.sh b/tests/webget_t.sh index 95246dc..421c487 100644 --- a/tests/webget_t.sh +++ b/tests/webget_t.sh @@ -1,13 +1,10 @@ #!/bin/bash -#/headless/sponge/tap.sh start +WEB_HASH=`./apps/webget cs144.keithw.org /hasher/xyzzy | tee /dev/stderr | tail -n 1` +/headless/sponge/tap.sh start service apache2 start echo "QWx0NhMPkoM/bJr/ohvHXlviFhOyYrYb+qqdOnwLYo4" > /var/www/html/xyzzy -WEB_HASH=`./apps/webget 127.0.0.1 /xyzzy | tee /dev/stderr | tail -n 1` +WEB_HASH=`./apps/webget 169.254.10.1 /xyzzy | tee /dev/stderr | tail -n 1` CORRECT_HASH="QWx0NhMPkoM/bJr/ohvHXlviFhOyYrYb+qqdOnwLYo4" -if [ "${WEB_HASH}" != "${CORRECT_HASH}" ]; then - echo ERROR: webget returned output that did not match the test\'s expectations - exit 1 -fi -exit 0 +if [ "${WEB_HASH}" != "${CORRECT_HASH}" ]; then \ No newline at end of file -- GitLab