From fc3fe60c0fb1ba715761c46ddc46463b06e61ae4 Mon Sep 17 00:00:00 2001 From: Tobias Brox Date: Fri, 14 Dec 2018 14:35:27 +0100 Subject: bugfix --- tests/script_test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/script_test.sh b/tests/script_test.sh index 1636478..d33a9d5 100755 --- a/tests/script_test.sh +++ b/tests/script_test.sh @@ -23,6 +23,9 @@ calendar_cli() { [ -z "$output" ] || echo $output } +## CLEANUP from earlier failed test runs + +for uid in $(../calendar-cli calendar agenda --from-time=2010-10-10 --agenda-days=1 --event-template='{uid}') ; do ../calendar-cli calendar delete --event-uid=$uid ; done ## TESTING @@ -48,7 +51,7 @@ calendar_cli calendar agenda --from-time=2010-10-09 --agenda-days=4 echo $output | { grep -q 'testing testing' && echo "## OK: found the event" ; } || echo "## FAIL: didn't find the event" echo "## Taking out the agenda for 2010-10-10, with uid" -calendar_cli calendar agenda --from-time=2010-10-10 --agenda-days=1 --event-template='{dstart} {uid}' +calendar_cli calendar agenda --from-time=2010-10-10 --agenda-days=1 --event-template='{dtstart} {uid}' echo $output | { grep -q $uid2 && echo "## OK: found the UID" ; } || echo "## FAIL: didn't find the UID" echo "## Deleting events with uid $uid $uid1 $uid2" -- cgit v1.2.3