From c148966ebbd3204eb101596f000be840b495e4de Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 11 Dec 2014 13:43:10 +0000 Subject: [PATCH] Tweak test run script --- test/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run b/test/run index 137db66d..b80bde5a 100755 --- a/test/run +++ b/test/run @@ -5,14 +5,14 @@ main() { number_tests=0 number_failures=0 - dirs="$@" + dirs="${@:-.}" test=$(pwd) work=$(mktemp -d /tmp/kak-tests.XXXXXXXX) cp -R . $work trap "rm -R $work" EXIT for dir in $(find $dirs -type d); do cd $test/$dir; - test_files=$(find * -name out -o -name selections -o -name state) + test_files=$(ls out selections state 2>/dev/null) cd $work/$dir; indent="$(echo "${dir}/" | sed "s|[^/]*/\+| |g")" name=$(basename $PWD)