shellcheck: shellcheck fixes

This commit is contained in:
ShahanaFarooqui 2024-11-15 21:23:08 -08:00 committed by Rusty Russell
parent 61abfbcad1
commit e352a72e5e
2 changed files with 6 additions and 4 deletions

View File

@ -17,7 +17,8 @@ readonly BINARY="$1"
readonly RAW_PROFILE_FILE="$2"
readonly TARGET_HTML_FILE="$3"
readonly MERGED_PROFILE_FILE=$(mktemp)
MERGED_PROFILE_FILE=$(mktemp)
readonly MERGED_PROFILE_FILE
llvm-profdata merge -sparse "${RAW_PROFILE_FILE}" -o "${MERGED_PROFILE_FILE}"
llvm-cov show "${BINARY}" -instr-profile="${MERGED_PROFILE_FILE}" -format=html \

View File

@ -1,9 +1,10 @@
#!/bin/bash -eu
# Runs each fuzz target on its seed corpus and prints any failures.
readonly FUZZ_DIR=$(dirname "$0")
readonly TARGETS=$(find "${FUZZ_DIR}" -type f -name "fuzz-*" ! -name "*.*")
FUZZ_DIR=$(dirname "$0")
readonly FUZZ_DIR
TARGETS=$(find "${FUZZ_DIR}" -type f -name "fuzz-*" ! -name "*.*")
readonly TARGETS
export UBSAN_OPTIONS="halt_on_error=1:print_stacktrace=1"