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

Unified Diff: tools/telemetry/third_party/gsutilz/gslib/tests/testcase/unit_testcase.py

Issue 1376593003: Roll gsutil version to 4.15. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
Index: tools/telemetry/third_party/gsutilz/gslib/tests/testcase/unit_testcase.py
diff --git a/tools/telemetry/third_party/gsutilz/gslib/tests/testcase/unit_testcase.py b/tools/telemetry/third_party/gsutilz/gslib/tests/testcase/unit_testcase.py
index e36bd285c714aaf5bd29da7b19116a8a7db60733..9c38084a3b8d98084b04d980c578c7e49aa8cb45 100644
--- a/tools/telemetry/third_party/gsutilz/gslib/tests/testcase/unit_testcase.py
+++ b/tools/telemetry/third_party/gsutilz/gslib/tests/testcase/unit_testcase.py
@@ -133,7 +133,7 @@ class GsUtilUnitTestCase(base.GsUtilTestCase):
sys.stderr.write('==== end log output ====\n')
def RunCommand(self, command_name, args=None, headers=None, debug=0,
- test_method=None, return_stdout=False, return_stderr=False,
+ return_stdout=False, return_stderr=False,
return_log_handler=False, cwd=None):
"""Method for calling gslib.command_runner.CommandRunner.
@@ -148,9 +148,6 @@ class GsUtilUnitTestCase(base.GsUtilTestCase):
args: Command-line args (arg0 = actual arg, not command name ala bash).
headers: Dictionary containing optional HTTP headers to pass to boto.
debug: Debug level to pass in to boto connection (range 0..3).
- test_method: Optional general purpose method for testing purposes.
- Application and semantics of this method will vary by
- command and test type.
return_stdout: If True, will save and return stdout produced by command.
return_stderr: If True, will save and return stderr produced by command.
return_log_handler: If True, will return a MockLoggingHandler instance
@@ -193,8 +190,7 @@ class GsUtilUnitTestCase(base.GsUtilTestCase):
with WorkingDirectory(cwd):
self.command_runner.RunNamedCommand(
command_name, args=args, headers=headers, debug=debug,
- parallel_operations=False, test_method=test_method,
- do_shutdown=False)
+ parallel_operations=False, do_shutdown=False)
finally:
sys.stdout.seek(0)
stdout = sys.stdout.read()

Powered by Google App Engine
This is Rietveld 408576698