On Thu, 2013-10-17 at 18:46 +0200, Jiri Jaburek wrote:
Signed-off-by: Jiri Jaburek <jjaburek(a)redhat.com>
---
src/python/testwatcher.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/python/testwatcher.py b/src/python/testwatcher.py
(...)
-# (25 minutes = 1500 secs)
-ewd_maxsecs = 1500
+# (25 minutes = 1500 secs by default, configurable via env)
+if 'TESTWATCHER_EWD_SECS' in os.environ:
+ ewd_maxsecs = int(os.environ['TESTWATCHER_EWD_SECS'])
+else:
+ ewd_maxsecs = 1500
This will burn down on any bad input - perhaps we should make it burn
down at least a bit gracefully, with an explanation of what went wrong?
But that is not a showstopper. Applied.