diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-10-06 00:03:16 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-27 15:46:05 +0200 |
commit | aa4db02702313cf277b2c56b51ea9eb916de9468 (patch) | |
tree | b25fdcca6e6fbd116e678c76cd9fd7c032e2d19d /test/runTest | |
parent | e4e9960d734c8cbe5630454701f0289e0ed68d07 (diff) | |
download | dbscripts-aa4db02702313cf277b2c56b51ea9eb916de9468.tar.gz dbscripts-aa4db02702313cf277b2c56b51ea9eb916de9468.tar.xz |
make test.d/create-filelists.sh pass
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'test/runTest')
-rwxr-xr-x | test/runTest | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/runTest b/test/runTest index b8713d8..24c6c31 100755 --- a/test/runTest +++ b/test/runTest @@ -2,7 +2,13 @@ . "$(dirname ${BASH_SOURCE[0]})/lib/common.inc" -for t in "$(dirname ${BASH_SOURCE[0]})/test.d/"*.sh; do +if (($#>0)); then + tests=("$@") +else + tests=("$(dirname ${BASH_SOURCE[0]})/test.d/"*.sh) +fi + +for t in "${tests[@]}"; do l=$(basename ${t} .sh) if [ -x ${t} ]; then msg "Running test '${l}'" |