Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(690)

Side by Side Diff: client/bin/harness.py

Issue 6246035: Merge remote branch 'cros/upstream' into master (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 """The harness interface 1 """The harness interface
2 2
3 The interface between the client and the server when hosted. 3 The interface between the client and the server when hosted.
4 """ 4 """
5 5
6 __author__ = """Copyright Andy Whitcroft 2006""" 6 __author__ = """Copyright Andy Whitcroft 2006"""
7 7
8 import os, sys 8 import os, sys, logging
9 import common 9 import common
10 10
11 class harness(object): 11 class harness(object):
12 """The NULL server harness 12 """The NULL server harness
13 13
14 Properties: 14 Properties:
15 job 15 job
16 The job object for this job 16 The job object for this job
17 """ 17 """
18 18
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 def test_status_detail(self, code, subdir, operation, status, tag): 80 def test_status_detail(self, code, subdir, operation, status, tag):
81 """A test within this job is completing (detail)""" 81 """A test within this job is completing (detail)"""
82 pass 82 pass
83 83
84 84
85 def select(which, job): 85 def select(which, job):
86 if not which: 86 if not which:
87 which = 'standalone' 87 which = 'standalone'
88 88
89 logging.debug('Selected harness: %s' % which)
90
89 harness_name = 'harness_%s' % which 91 harness_name = 'harness_%s' % which
90 harness_module = common.setup_modules.import_module(harness_name, 92 harness_module = common.setup_modules.import_module(harness_name,
91 'autotest_lib.client.bin ') 93 'autotest_lib.client.bin ')
92 harness_instance = getattr(harness_module, harness_name)(job) 94 harness_instance = getattr(harness_module, harness_name)(job)
93 95
94 return harness_instance 96 return harness_instance
OLDNEW
« cli/job.py ('K') | « client/bin/base_sysinfo.py ('k') | client/bin/job.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698