taskwarrior/test/test_hooks/on-exit-misbehave2
Paul Beckingham ab41e005c9 Unit Tests
- Added on-exit test for unexpected JSON output.
2015-02-14 16:19:36 -05:00

18 lines
386 B
Bash

#!/bin/sh
# The on-exit event is triggered once, after initialization, before any
# processing occurs. This hooks script has no effect on processing.
# Input:
# - None
# Output:
# - Optional feedback/error.
echo '{"description":"extra","status":"pending"}'
echo 'FEEDBACK'
# Status:
# - 0: JSON ignored, non-JSON is feedback.
# - non-0: JSON ignored, non-JSON is error.
exit 0