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

Side by Side Diff: tools/chrome_proxy/webdriver/decorators.py

Issue 2834813003: Add slow test decorator (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 # Copyright 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import re 5 import re
6 6
7 from common import ParseFlags 7 from common import ParseFlags
8 from common import TestDriver 8 from common import TestDriver
9 9
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 def wrapper(*args, **kwargs): 110 def wrapper(*args, **kwargs):
111 global chrome_version 111 global chrome_version
112 if chrome_version == None: 112 if chrome_version == None:
113 chrome_version = GetChromeVersion() 113 chrome_version = GetChromeVersion()
114 if chrome_version >= milestone: 114 if chrome_version >= milestone:
115 func(*args, **kwargs) 115 func(*args, **kwargs)
116 else: 116 else:
117 args[0].skipTest('This test does not run below M%d.' % milestone) 117 args[0].skipTest('This test does not run below M%d.' % milestone)
118 return wrapper 118 return wrapper
119 return puesdo_wrapper 119 return puesdo_wrapper
120
121 def Slow(func):
122 def wrapper(*args, **kwargs):
123 if ParseFlags().skip_slow:
124 args[0].skipTest('Skipping slow test.')
125 else:
126 func(*args, **kwargs)
127 return wrapper
OLDNEW
« no previous file with comments | « tools/chrome_proxy/webdriver/compression_regression.py ('k') | tools/chrome_proxy/webdriver/reenable_after_bypass.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698