Unit Tests

- Added on-exit test for unexpected JSON output.
This commit is contained in:
Paul Beckingham
2015-02-14 16:19:36 -05:00
parent bd785ffad5
commit ab41e005c9
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/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