summaryrefslogtreecommitdiff
path: root/buildscripts/merge_corpus.sh
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2019-08-23 16:59:30 +0000
committerevergreen <evergreen@mongodb.com>2019-08-23 16:59:30 +0000
commitd768cef877ff502968479905a1da8f65078841d7 (patch)
tree89bf1084be6fbb62903ce7909dfe61b00d835110 /buildscripts/merge_corpus.sh
parent340f74b106235784603b80b2595afae3114c70de (diff)
downloadmongo-d768cef877ff502968479905a1da8f65078841d7.tar.gz
SERVER-42968 Merge libfuzzer tasks with those in compile group
Diffstat (limited to 'buildscripts/merge_corpus.sh')
-rwxr-xr-xbuildscripts/merge_corpus.sh7
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