Skip to content

Commit

Permalink
tests/make_graph: fix a couple of cache handling issues
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Evgeniev <martin.evgeniev@bbva.com>
  • Loading branch information
panchoh and suizman committed Dec 11, 2018
1 parent 425d588 commit 1df205b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/make_graph
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ fi
dir="$1"
metric="$2"

if [ ! -z "$(find "$dir" -name '*pb.gz' -newer /tmp/data)" ]; then
if [ ! -d "$dir" ]; then
echo "ERROR: results_dir: ‘$dir’ is not readable!"
echo "Usage: $0 results_dir"
fi

if [ ! -f /tmp/data -o ! -z "$(find "$dir" -name '*pb.gz' -newer /tmp/data)" ]; then
echo -n 'Refreshing /tmp/data...'
for prof in $(find $dir -type f -name "*.pb.gz" | sort)
do
Expand Down

0 comments on commit 1df205b

Please sign in to comment.