diff options
author | Tobias Brox <tobias@redpill-linpro.com> | 2021-12-30 03:52:25 +0100 |
---|---|---|
committer | Tobias Brox <tobias@redpill-linpro.com> | 2021-12-30 03:52:25 +0100 |
commit | 46f66948473dc0b0ef98525e03bdf73d43992b1d (patch) | |
tree | 74e3b2302579d0e62b39b9ff53f4785ff989660d /tests/tests.sh | |
parent | 64892380606729b022daeadd5d7b82b4795964a3 (diff) | |
download | calendar-cli-46f66948473dc0b0ef98525e03bdf73d43992b1d.zip |
working on the new kal interface
Diffstat (limited to 'tests/tests.sh')
-rwxr-xr-x | tests/tests.sh | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/tests/tests.sh b/tests/tests.sh index 5b6b1af..f519447 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -6,22 +6,11 @@ set -e ## SETUP ######################################################################## -error() { - echo "$1" - echo "sleeping 3" - sleep 3 - exit 255 -} - -[ -z "$calendar_cli" ] && [ -x ./calendar-cli.py ] && calendar_cli=./calendar-cli.py -[ -z "$calendar_cli" ] && [ -x ../calendar-cli.py ] && calendar_cli=../calendar-cli.py -[ -z "$calendar_cli" ] && error "couldn't find ./calendar_cli.py nor ../calendar_cli.py" - -calendar_cli() { - echo " $calendar_cli $@" - output=$($calendar_cli "$@") - [ -z "$output" ] || echo $output -} +for path in . .. ./tests ../tests +do + setup="$path/_setup_alias" + [ -x $setup ] && source $setup +done echo "## CLEANUP from earlier failed test runs" |