Unittest - Enhanced support for testing hooks (wip)
* It is now possible to test: * Hook Input/Output on STDIN/STDOUT channels * Exit code of hook script * Execution count (how many times the hook was executed) * Timestamp execution (when was the hook executed - milisec resolution)
This commit is contained in:
10
test/test_hooks/on-modify.dummy
Normal file
10
test/test_hooks/on-modify.dummy
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "on-modify executed"
|
||||
|
||||
while read TASK MODTASK; do
|
||||
echo "Existing task $TASK modified to $MODTASK"
|
||||
echo $MODTASK
|
||||
done
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user