Пример #1
0
 def setup(self, context):
     self.logger.info('Any setup required by your workload should be done now.')
     self.logger.info('As soon as you are done hit any key and wait for the message')
     self.logger.info('"START NOW!" to begin your manual workload.')
     self.logger.info('')
     self.logger.info('hit any key to finalize your setup...')
     getch()
Пример #2
0
 def setup(self, context):
     self.logger.info(
         'Any setup required by your workload should be done now.')
     self.logger.info(
         'As soon as you are done hit any key and wait for the message')
     self.logger.info('"START NOW!" to begin your manual workload.')
     self.logger.info('')
     self.logger.info('hit any key to finalize your setup...')
     getch()
Пример #3
0
 def run(self, context):
     self.logger.info('START NOW!')
     if self.duration:
         time.sleep(self.duration)
     elif self.user_triggered:
         self.logger.info('')
         self.logger.info('hit any key to end your workload execution...')
         getch()
     else:
         raise ConfigError('Illegal parameters for manual workload')
     self.logger.info('DONE! your results are now being collected!')
Пример #4
0
 def run(self, context):
     self.logger.info('START NOW!')
     if self.duration:
         time.sleep(self.duration)
     elif self.user_triggered:
         self.logger.info('')
         self.logger.info('hit any key to end your workload execution...')
         getch()
     else:
         raise ConfigError('Illegal parameters for manual workload')
     self.logger.info('DONE! your results are now being collected!')