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

Unified Diff: systrace/systrace/decorators.py

Issue 2295913002: Enable some profile_chrome unit tests on Trybots (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: Add never-run decorator to perf agent as well Created 4 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: 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):

Powered by Google App Engine
This is Rietveld 408576698