From 0f3c94cf7237f8d0ba613666394e248d1947de77 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 20 Nov 2021 15:14:09 +0100 Subject: Update run_tests to be more scalable with more test folders added --- scripts/run_tests.sh | 10 ++++------ 1 file 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 -- cgit v1.2.3-70-g09d2