travis: fail on bad hash message
authorYousong Zhou <redacted>
Mon, 9 Jul 2018 03:34:36 +0000 (11:34 +0800)
committerYousong Zhou <redacted>
Tue, 17 Jul 2018 12:35:00 +0000 (20:35 +0800)
Signed-off-by: Yousong Zhou <redacted>
.travis_do.sh

index 63cd1d77c90015b556418ddcf13623e54fae9050..798b19b7599136d26147e9429a049b4e98a57a01 100755 (executable)
@@ -136,7 +136,10 @@ EOF
                echo_blue "=== $pkg_name: Starting quick tests"
 
                exec_status '^ERROR' make "package/$pkg_name/download" V=s || RET=1
-               exec_status '^ERROR' make "package/$pkg_name/check" V=s || RET=1
+               badhash_msg_regex="HASH does not match "
+               badhash_msg_regex="$badhash_msg_regex|HASH uses deprecated hash,"
+               badhash_msg_regex="$badhash_msg_regex|HASH is missing,"
+               exec_status '^ERROR'"|$badhash_msg_regex" make "package/$pkg_name/check" V=s || RET=1
 
                echo_blue "=== $pkg_name: quick tests done"
        done
git clone https://git.99rst.org/PROJECT