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

Unified Diff: testing/tools/suppressor.py

Issue 1607113002: Merge to XFA: Hook up show-config to testing scripts. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 11 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
« no previous file with comments | « testing/tools/run_pixel_tests.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/tools/suppressor.py
diff --git a/testing/tools/suppressor.py b/testing/tools/suppressor.py
index f25db4564b3597d66f2a4bef406e0ca786be5e2e..a1c3171de11413d08fccd51d9b15fa64c865f208 100755
--- a/testing/tools/suppressor.py
+++ b/testing/tools/suppressor.py
@@ -8,10 +8,13 @@ import os
import common
class Suppressor:
- def __init__(self, finder):
+ def __init__(self, finder, feature_string):
+ feature_vector = feature_string.strip().split(",")
+ v8_option = ["nov8", "v8"]["V8" in feature_vector]
+ xfa_option = ["noxfa", "xfa"]["XFA" in feature_vector]
with open(os.path.join(finder.TestingDir(), 'SUPPRESSIONS')) as f:
self.suppression_set = set(self._FilterSuppressions(
- common.os_name(), "v8", "xfa", self._ExtractSuppressions(f)))
+ common.os_name(), v8_option, xfa_option, self._ExtractSuppressions(f)))
def _ExtractSuppressions(self, f):
return [y.split(' ') for y in
« no previous file with comments | « testing/tools/run_pixel_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698