summaryrefslogtreecommitdiff
path: root/tests/script_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/script_test.sh')
-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"