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

Unified Diff: client/bin/job_unittest.py

Issue 6539001: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/bin/job.py ('k') | client/common_lib/base_packages.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/bin/job_unittest.py
diff --git a/client/bin/job_unittest.py b/client/bin/job_unittest.py
index 0e5aedeebc74491d8700ad4e243c65e31650b0c2..88fa2721ef1cada3efbe102a5871790babf44471 100755
--- a/client/bin/job_unittest.py
+++ b/client/bin/job_unittest.py
@@ -82,6 +82,7 @@ class test_init_minimal_options(abstract_test_init, job_test_case):
verbose = False
cont = False
harness = 'stub'
+ harness_args = None
hostname = None
user = None
log = False
@@ -181,7 +182,8 @@ class test_base_job(unittest.TestCase):
my_harness = self.god.create_mock_class(harness.harness,
'my_harness')
harness.select.expect_call(None,
- self.job).and_return(my_harness)
+ self.job,
+ None).and_return(my_harness)
return resultdir, my_harness
@@ -237,6 +239,7 @@ class test_base_job(unittest.TestCase):
options.tag = self.jobtag
options.cont = cont
options.harness = None
+ options.harness_args = None
options.log = False
options.verbose = False
options.hostname = 'localhost'
@@ -277,6 +280,7 @@ class test_base_job(unittest.TestCase):
options.tag = self.jobtag
options.cont = False
options.harness = None
+ options.harness_args = None
options.log = False
options.verbose = False
options.hostname = 'localhost'
@@ -322,10 +326,12 @@ class test_base_job(unittest.TestCase):
# record
which = "which"
- harness.select.expect_call(which, self.job).and_return(None)
+ harness_args = ''
+ harness.select.expect_call(which, self.job,
+ harness_args).and_return(None)
# run and test
- self.job.harness_select(which)
+ self.job.harness_select(which, harness_args)
self.god.check_playback()
« no previous file with comments | « client/bin/job.py ('k') | client/common_lib/base_packages.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698