Hooks
- Added a new on-launch-misbehave2 script that emits unexpected JSON.
This commit is contained in:
18
test/test_hooks/on-launch-misbehave2
Normal file
18
test/test_hooks/on-launch-misbehave2
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
# The on-launch 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
|
||||
|
||||
Reference in New Issue
Block a user