Previously devstack-gate only timed out the default gate_hook within the gate_hook itself. This meant that any other hooks either pre_test/post_test or non default gate_hooks would not be timed out properly preventing the copying of logs before Jenkins times out the build. We can fix this by wrapping all hook calls with timeouts instead of expecting the hooks themselves to manage the timeouts. Note that this requires us to fork and exec a new shell which can be run under timeout because timeout cannot timeout shell functions. Change-Id: I1c204d8e91a54df9d39fc6193650cd3e744f1e94
34 KiB
34 KiB