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

Unified Diff: third_party/gsutil/boto/tests/mturk/run-doctest.py

Issue 12317103: Added gsutil to depot tools (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: added readme Created 7 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
Index: third_party/gsutil/boto/tests/mturk/run-doctest.py
diff --git a/third_party/gsutil/boto/tests/mturk/run-doctest.py b/third_party/gsutil/boto/tests/mturk/run-doctest.py
new file mode 100644
index 0000000000000000000000000000000000000000..802b773996925364328f735a85de2bfb8c42b82f
--- /dev/null
+++ b/third_party/gsutil/boto/tests/mturk/run-doctest.py
@@ -0,0 +1,13 @@
+import argparse
+import doctest
+
+parser = argparse.ArgumentParser(
+ description="Run a test by name"
+ )
+parser.add_argument('test_name')
+args = parser.parse_args()
+
+doctest.testfile(
+ args.test_name,
+ optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
+ )

Powered by Google App Engine
This is Rietveld 408576698