fix: update exec of multiple scripts for linux
This commit is contained in:
parent
4944b6ecc0
commit
ebbdcb187f
1 changed files with 7 additions and 1 deletions
|
@ -1,7 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
main() {
|
||||
for test in $(compgen -A function | grep "^test_linux_"); do "$test"; done
|
||||
set -e # exit on error
|
||||
_files=$(find "$CURRENT_DIR" -name "test_linux_*" -type f)
|
||||
for test in $_files; do
|
||||
bash -c "$test"
|
||||
done
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue