workercommands.py 537 B

12345678910111213141516171819202122232425262728
  1. # Copyright (c) Twisted Matrix Laboratories.
  2. # See LICENSE for details.
  3. """
  4. Commands for telling a worker to load tests or run tests.
  5. @since: 12.3
  6. """
  7. from twisted.protocols.amp import Command, String, Boolean
  8. class Run(Command):
  9. """
  10. Run a test.
  11. """
  12. arguments = [(b'testCase', String())]
  13. response = [(b'success', Boolean())]
  14. class Start(Command):
  15. """
  16. Set up the worker process, giving the running directory.
  17. """
  18. arguments = [(b'directory', String())]
  19. response = [(b'success', Boolean())]