fvpcmd.py 632 B

12345678910111213141516171819202122232425
  1. #! python
  2. from buildcmd import BuildCmd
  3. class FvpCmd(BuildCmd):
  4. def __init__(self, model, app, **args):
  5. BuildCmd.__init__(self)
  6. self._model = model
  7. self._app = app
  8. self._args = args
  9. def getCommand(self):
  10. return self._model
  11. def getArguments(self):
  12. args = []
  13. if self._args.has_key('limit'): args += [ "--cyclelimit", self._args['limit'] ]
  14. if self._args.has_key('config'): args += [ "-f", self._args['config'] ]
  15. if self._args.has_key('target'):
  16. args += [ "-a", "{0}={1}".format(self._args['target'], self._app ) ]
  17. else:
  18. args += [ self._app ]
  19. return args