From 4445f9337909e5da6ab5118dd858feac244efe3d Mon Sep 17 00:00:00 2001 From: Nodar Ambroladze Date: Thu, 25 Jan 2024 15:44:07 +0100 Subject: [PATCH] Fix script to complain when neither build nor fuzzer name is specified --- scripts/fuzz.bash | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/fuzz.bash b/scripts/fuzz.bash index d236f90ce8..f1f84d9ba1 100755 --- a/scripts/fuzz.bash +++ b/scripts/fuzz.bash @@ -83,6 +83,11 @@ while [[ $# -gt 0 ]]; do esac done +if [[ "$run_build" == "false" && -z "$test_group" ]]; then + echo you must specify either --build flag or fuzzer-name + printusage +fi + if $run_build; then for build_group in system_tests arbstate; do go test -c ${nitropath}/${build_group} -fuzz Fuzz -o "$binpath"/${build_group}.fuzz