Mercurial > repos > fubar > brokenandnotdeletablebyowneroradmin
comparison rgDynamicScriptWrapper.py @ 1:0133b97e477e
Write to stderr to force job runner to realise that the tool failed - it ignores return codes :(
author | ross lazarus ross.lazarus@gmail.com |
---|---|
date | Wed, 30 May 2012 23:20:52 +1000 |
parents | fda8032fe989 |
children |
comparison
equal
deleted
inserted
replaced
0:fda8032fe989 | 1:0133b97e477e |
---|---|
242 except: | 242 except: |
243 pass | 243 pass |
244 r = ScriptRunner(opts) | 244 r = ScriptRunner(opts) |
245 retcode = r.run() | 245 retcode = r.run() |
246 if retcode: | 246 if retcode: |
247 print >> sys.stderr,'Executing your script %s failed - return code was %d' % (opts.tool_name,retcode) | |
247 sys.exit(retcode) # indicate failure to job runner | 248 sys.exit(retcode) # indicate failure to job runner |
248 | 249 |
249 | 250 |
250 if __name__ == "__main__": | 251 if __name__ == "__main__": |
251 main() | 252 main() |