Skip to content

Commit

Permalink
Merge pull request f4pga#672 from litghost/save_logs_on_success
Browse files Browse the repository at this point in the history
Save fuzzer logs, even on success.
  • Loading branch information
mithro committed Feb 22, 2019
2 parents 8fde4e2 + acf7aaf commit 78565b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/kokoro/db-full.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,6 @@ echo "----------------------------------------"
cd fuzzers
echo
echo "Cleaning up so CI doesn't save all the excess data."
make clean
make clean_fuzzers
)
echo "----------------------------------------"
7 changes: 6 additions & 1 deletion fuzzers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ FUZZONLY=N
BITONLY=N

all:
clean: clean_fuzzers clean_logs

define fuzzer

Expand All @@ -21,8 +22,10 @@ define fuzzer
all: $(1)/run.ok

# Make the clean target run `make clean` in the fuzzer's directory.
clean::
clean_fuzzers::
$$(MAKE) -C $(1) clean

clean_logs::
rm -rf $(1)/logs

# Describe how to create the fuzzer's run.ok file.
Expand Down Expand Up @@ -99,3 +102,5 @@ endif

quick:
$(MAKE) QUICK=Y

.PHONY: all clean clean_fuzzers clean_logs quick

0 comments on commit 78565b6

Please sign in to comment.