Example #1
0
def start_perf_test_for_file(file_id, os_name, app_name, **kw):
    log.info('[@%s] Starting perf tests for file %s on %s / %s'
             % (start_perf_test_for_file.rate_limit, file_id,
                os_name, app_name))
    file_ = File.objects.get(pk=file_id)
    # TODO(Kumar) store token to retrieve results later?
    perf.start_perf_test(file_, os_name, app_name)
Example #2
0
 def handle(self, *args, **options):
     start_perf_test(File.objects.get(pk=options['file_id']),
                     options['os'], options['firefox'])
     print 'Tests started...'