aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run_tests.sh10
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