diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-01-19 15:05:36 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-01-19 15:05:36 -0800 |
commit | 5c1efd404f6f0c6bc190101fad3a9977c4e2e6d2 (patch) | |
tree | 418dd43cb03f6c00638e16d941164ab5e9cc195c /testing/tools/suppressor.py | |
parent | fd5f130ac81537c9066f5fb7998fdf08f501b40e (diff) | |
download | pdfium-5c1efd404f6f0c6bc190101fad3a9977c4e2e6d2.tar.xz |
Merge to XFA: Hook up show-config to testing scripts.
Review URL: https://codereview.chromium.org/1607923004 .
(cherry picked from commit d40e189ba1ab515ef9b3df7928e215be150df336)
TBR=ochang@chromium.org
Review URL: https://codereview.chromium.org/1607113002 .
Diffstat (limited to 'testing/tools/suppressor.py')
-rwxr-xr-x | testing/tools/suppressor.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/tools/suppressor.py b/testing/tools/suppressor.py index f25db4564b..a1c3171de1 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 |