Guest User

Untitled

a guest
Dec 12th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. class determine_test_args(object):
  2. implements(IRenderable)
  3. def getRenderingFor(props):
  4. if props.hasProperty('TRIGGER_TESTS'):]
  5. tests=props['TRIGGER_TESTS']
  6. if isinstance(tests, str):
  7. return '--tests=%s'%props['TRIGGER_TESTS']
  8. else:
  9. return '--tests=%s' % (','.join(tests))
  10. else:
  11. return []
  12.  
  13. b.addStep(ShellCommand(command=['run-tests', determine_test_args()))
Add Comment
Please, Sign In to add comment