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/chrome_proxy/webdriver/simple_smoke.py

Issue 2570433008: Bake in Python's unittest command line args. (Closed)
Patch Set: Fix git issues Created 4 years 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 | « tools/chrome_proxy/webdriver/common.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/chrome_proxy/webdriver/simple_smoke.py
diff --git a/tools/chrome_proxy/webdriver/simple_smoke.py b/tools/chrome_proxy/webdriver/simple_smoke.py
index 27766c4b73948856442fb1b27095dfa13fa6864c..7d10956ffd49519c030475b8226fe502f9833fa7 100644
--- a/tools/chrome_proxy/webdriver/simple_smoke.py
+++ b/tools/chrome_proxy/webdriver/simple_smoke.py
@@ -42,5 +42,8 @@ class SimpleSmoke(unittest.TestCase):
if __name__ == '__main__':
# The unittest library uses sys.argv itself and is easily confused by our
- # command line options. Pass it a simpler argv instead.
- unittest.main(argv=[sys.argv[0]], verbosity=2)
+ # command line options. Pass it a simpler argv instead, while working in the
+ # unittest command line args functionality.
+ flags = common.ParseFlags()
+ unittest.main(argv=[sys.argv[0]], verbosity=2, failfast=flags.failfast,
+ catchbreak=flags.catch, buffer=flags.buffer)
« no previous file with comments | « tools/chrome_proxy/webdriver/common.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698