Chromium Code Reviews| Index: systrace/systrace/decorators.py |
| diff --git a/systrace/systrace/decorators.py b/systrace/systrace/decorators.py |
| index ee3a660538f7ca4ecc69b4fef91d79bc403795e7..bf959197e5ab7acb8dff69ba9183041dd8a5d027 100644 |
| --- a/systrace/systrace/decorators.py |
| +++ b/systrace/systrace/decorators.py |
| @@ -14,7 +14,13 @@ def HostOnlyTest(func): |
| def ClientOnlyTest(func): |
| """Decorator for running unit tests only on client devices (Android). |
| """ |
| - return _SkipTestDecoratorHelper(func, ['windows', 'linux', 'mac']) |
| + return _SkipTestDecoratorHelper(func, ['win', 'linux', 'mac']) |
| + |
| + |
| +def NeverRunTest(func): |
|
Zhen Wang
2016/09/01 23:16:56
Maybe rename to Disabled to be consistent?
washingtonp
2016/09/08 22:51:37
Done.
|
| + """Decorator for not running a unit test on any Trybot platform. |
| + """ |
| + return _SkipTestDecoratorHelper(func, ['win', 'linux', 'mac', 'android']) |
| def _SkipTestDecoratorHelper(func, disabled_strings): |