From de2ecf8553fba5057a8629eecd7bfbea8a5b89b0 Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Thu, 28 Jan 2021 15:04:43 -0800 Subject: [PATCH] [cifuzz] Allow specifying corpus for run_fuzzer (#5064) --- infra/base-images/base-runner/run_fuzzer | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/base-images/base-runner/run_fuzzer b/infra/base-images/base-runner/run_fuzzer index 5b294828c..2b791aab0 100755 --- a/infra/base-images/base-runner/run_fuzzer +++ b/infra/base-images/base-runner/run_fuzzer @@ -26,7 +26,7 @@ DEBUGGER=${DEBUGGER:-} FUZZER=$1 shift -CORPUS_DIR="/tmp/${FUZZER}_corpus" +CORPUS_DIR=${CORPUS_DIR:-"/tmp/${FUZZER}_corpus"} SANITIZER=${SANITIZER:-} if [ -z $SANITIZER ]; then @@ -63,8 +63,8 @@ function get_dictionary() { fi } -rm -rf $CORPUS_DIR && mkdir $CORPUS_DIR -rm -rf $FUZZER_OUT && mkdir $FUZZER_OUT +rm -rf $CORPUS_DIR && mkdir -p $CORPUS_DIR +rm -rf $FUZZER_OUT && mkdir -p $FUZZER_OUT SEED_CORPUS="${FUZZER}_seed_corpus.zip"