From b9d7d4bf66f24e3f6142ac1160c1f43480e4367f Mon Sep 17 00:00:00 2001 From: Jarell <91372088+jarelllama@users.noreply.github.com> Date: Mon, 1 Apr 2024 21:46:26 +0800 Subject: [PATCH] Fix --- functions/test_functions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/test_functions.sh b/functions/test_functions.sh index 324bf3ef9..cb58de8c5 100644 --- a/functions/test_functions.sh +++ b/functions/test_functions.sh @@ -6,6 +6,9 @@ # from the processing. The input and output files are compared to determine # the success or failure of the test. +# Fail as soon as there is an error +set -e + readonly RAW='data/raw.txt' readonly RAW_LIGHT='data/raw_light.txt' readonly WHITELIST='config/whitelist.txt' @@ -247,7 +250,7 @@ TEST_BUILD() { printf "%s\n" "$domain" >> "$RAW" cp "$RAW" "$RAW_LIGHT" - run_script build_list.sh + run_script build_lists.sh || exit 1 check_list "||${domain}^" adblock check_list "local=/${domain}/" dnsmasq