Commit 01d8f3be authored by machenbach's avatar machenbach Committed by Commit bot

[Swarming] Allow overwriting archive location of fuzzer.

On swarming, we need to be able to pass the location of the
archive, so that it ends up in swarming's outdir.

BUG=chromium:535160
LOG=n
NOTRY=true

Review URL: https://codereview.chromium.org/1706203002

Cr-Commit-Position: refs/heads/master@{#34116}
parent 1d420199
...@@ -52,7 +52,7 @@ fi ...@@ -52,7 +52,7 @@ fi
# Deprecated download method. A prepatched archive is downloaded as a hook # Deprecated download method. A prepatched archive is downloaded as a hook
# if jsfunfuzz=1 is specified as a gyp flag. Requires google.com authentication # if jsfunfuzz=1 is specified as a gyp flag. Requires google.com authentication
# for google storage. # for google storage.
if [ "$2" == "--download" ]; then if [ "$3" == "--download" ]; then
jsfunfuzz_file="$v8_root/tools/jsfunfuzz.zip" jsfunfuzz_file="$v8_root/tools/jsfunfuzz.zip"
if [ ! -f "$jsfunfuzz_file" ]; then if [ ! -f "$jsfunfuzz_file" ]; then
...@@ -92,7 +92,12 @@ python -u "$jsfunfuzz_dir/jsfunfuzz/multi_timed_run.py" 300 \ ...@@ -92,7 +92,12 @@ python -u "$jsfunfuzz_dir/jsfunfuzz/multi_timed_run.py" 300 \
"$d8" $flags "$jsfunfuzz_dir/jsfunfuzz/jsfunfuzz.js" "$d8" $flags "$jsfunfuzz_dir/jsfunfuzz/jsfunfuzz.js"
exit_code=$(cat w* | grep " looking good" -c) exit_code=$(cat w* | grep " looking good" -c)
exit_code=$((100-exit_code)) exit_code=$((100-exit_code))
archive=fuzz-results-$(date +%Y%m%d%H%M%S).tar.bz2
if [ -n "$2" ]; then
archive="$2"
else
archive=fuzz-results-$(date +%Y%m%d%H%M%S).tar.bz2
fi
echo "Creating archive $archive" echo "Creating archive $archive"
tar -cjf $archive err-* w* tar -cjf $archive err-* w*
rm -f err-* w* rm -f err-* w*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment