scripts: Improve error handling for 50.samba testparm failure
authorMartin Schwenke <martin@meltin.net>
Thu, 30 Jul 2015 06:49:35 +0000 (16:49 +1000)
committerMartin Schwenke <martin@meltin.net>
Wed, 24 Feb 2016 05:14:36 +0000 (16:14 +1100)
commit8bab7d4737a223645ffc6ecc7d7d30f82bd9e863
tree368f8d9513098021a2cdfb1837e731f48e35ed1f
parentd4b36475621eafcbba6d8a9ba81130169586ebe5
scripts: Improve error handling for 50.samba testparm failure

Also add tests.  Update testparm stub to fake error and timeout.  Add
timeout stub.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(Imported from commit 7d04778c82a8f657b6ba0173c29529fa03ab7a25)
config/events.d/50.samba
tests/eventscripts/50.samba.monitor.110.sh [new file with mode: 0755]
tests/eventscripts/50.samba.monitor.111.sh [new file with mode: 0755]
tests/eventscripts/50.samba.monitor.112.sh [new file with mode: 0755]
tests/eventscripts/50.samba.monitor.113.sh [new file with mode: 0755]
tests/eventscripts/stubs/testparm
tests/eventscripts/stubs/timeout [new file with mode: 0755]