diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2019-08-23 16:59:30 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-08-23 16:59:30 +0000 |
commit | d768cef877ff502968479905a1da8f65078841d7 (patch) | |
tree | 89bf1084be6fbb62903ce7909dfe61b00d835110 /buildscripts/merge_corpus.sh | |
parent | 340f74b106235784603b80b2595afae3114c70de (diff) | |
download | mongo-d768cef877ff502968479905a1da8f65078841d7.tar.gz |
SERVER-42968 Merge libfuzzer tasks with those in compile group
Diffstat (limited to 'buildscripts/merge_corpus.sh')
-rwxr-xr-x | buildscripts/merge_corpus.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/buildscripts/merge_corpus.sh b/buildscripts/merge_corpus.sh index 162f7037af5..ab50ee0aee8 100755 --- a/buildscripts/merge_corpus.sh +++ b/buildscripts/merge_corpus.sh @@ -9,6 +9,11 @@ set -o errexit input="build/libfuzzer_tests.txt" corpus_dir="corpus" +if [ ! -f $input ] || [ ! -d $corpus_dir ]; then + echo "Missing corpus information" + exit 0 +fi + # We need to merge the corpus once it has been tested while IFS= read -r line do @@ -23,4 +28,4 @@ find corpus/* -not -name '*-new' -type d -exec rm -rv {} + for f in ./corpus/* do mv "$f" "${f%-new}" -done
\ No newline at end of file +done |