On Thu, 2013-12-05 at 10:46 +0100, Jiri Jaburek wrote:
Signed-off-by: Jiri Jaburek <jjaburek(a)redhat.com>
---
src/python/testwatcher.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/python/testwatcher.py b/src/python/testwatcher.py
index aa7b452..8d716c7 100755
--- a/src/python/testwatcher.py
+++ b/src/python/testwatcher.py
@@ -69,6 +69,8 @@ import tempfile
# (25 minutes = 1500 secs by default, configurable via env)
if 'TESTWATCHER_EWD_SECS' in os.environ:
ewd_maxsecs = int(os.environ['TESTWATCHER_EWD_SECS'])
+ if ewd_maxsecs <= 0:
+ raise Exception("invalid TESTWATCHER_EWD_SECS env var value")
else:
ewd_maxsecs = 1500
Applied, thanks.
PM