diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/run_tests.sh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index 2447bd4c1..4db68190c 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -8,11 +8,9 @@ run() { -c "PlenaryBustedDirectory $1 { minimal_init = './scripts/minimal_init.lua' }" } -if [[ $1 = '--summary' ]]; then - # really simple results summary by filtering plenary busted output - run tests/indent/ 2> /dev/null | grep -E '^\S*(Success|Fail(ed)?|Errors?)' -elif [[ $1 = '--unit' ]]; then - run tests/unit +if [[ $2 = '--summary' ]]; then + ## really simple results summary by filtering plenary busted output + run tests/$1 2> /dev/null | grep -E '^\S*(Success|Fail(ed)?|Errors?)\s*:' else - run tests/indent/ + run tests/$1 fi |
