From dabfffe9d483a0f200dc90ea248f5de054848006 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Thu, 25 Jul 2013 16:13:38 -0400 Subject: [PATCH] bench: skip pep8analysis if not present --- benchmarks/bench_engines.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/benchmarks/bench_engines.sh b/benchmarks/bench_engines.sh index 40be4d2..ae8cc5b 100755 --- a/benchmarks/bench_engines.sh +++ b/benchmarks/bench_engines.sh @@ -130,8 +130,10 @@ function run_compiler() bench_command "shoot" "shoot_logic 30" "./shoot.$title.bin" 30 run_command "$@" ../tests/bench_bintree_gen.nit -o "bintrees.$title.bin" bench_command "bintrees" "bench_bintree_gen 18" "./bintrees.$title.bin" 18 - run_command "$@" "$pep8analysis/src/pep8analysis.nit" -I "$pep8analysis/lib" -o "pep8a.$title.bin" - bench_command "pep8analisis" "bench_bintree_gen 18" "./pep8a.$title.bin" "$pep8analysis/tests/privat/"*.pep + if test -f "$pep8analysis/src/pep8analysis.nit"; then + run_command "$@" "$pep8analysis/src/pep8analysis.nit" -I "$pep8analysis/lib" -o "pep8a.$title.bin" + bench_command "pep8analisis" "bench_bintree_gen 18" "./pep8a.$title.bin" "$pep8analysis/tests/privat/"*.pep + fi fi } -- 1.7.9.5