summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2018-12-14 14:35:27 +0100
committerTobias Brox <tobias@redpill-linpro.com>2018-12-14 14:35:27 +0100
commitfc3fe60c0fb1ba715761c46ddc46463b06e61ae4 (patch)
treeaffd75d7a7444ef1606c45658230dacf079a31aa
parent0e7c2db08d1686d6267898417f0a926da2e68de7 (diff)
downloadcalendar-cli-fc3fe60c0fb1ba715761c46ddc46463b06e61ae4.zip
bugfix
-rwxr-xr-xtests/script_test.sh5
1 files changed, 4 insertions, 1 deletions
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"