in annotated_steps.py [0:0]
def RunCustomScript(test_config):
custom_script = test_config.get_custom_script()
if custom_script:
command_string = FillMagicMarkers(custom_script, test_config.replacements)
with BuildStep('Running custom script'):
args = shlex.split(command_string, posix=False)
print 'Running command: %s' % args
sys.stdout.flush()
exit_code = subprocess.call(args)
if exit_code != 0:
print "Custom script failed"
return True
else:
return False