From 893f8788470f56f949480ac7185eebe5333dd7be Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Mon, 9 Jul 2018 11:34:36 +0800 Subject: [PATCH] travis: fail on bad hash message Signed-off-by: Yousong Zhou --- .travis_do.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis_do.sh b/.travis_do.sh index 63cd1d77c9..798b19b759 100755 --- a/.travis_do.sh +++ b/.travis_do.sh @@ -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 -- 2.30.2