diff options
author | chase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-11 17:00:36 +0000 |
---|---|---|
committer | chase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-11 17:00:36 +0000 |
commit | 63c15a317b1d50109904b0b27bbdec9ad3bec431 (patch) | |
tree | 06d5ab1de095253c0558adc1cc979c603bcbfec7 /tools/perf_expectations | |
parent | a340ea7123c00557474dab5c9069577cf59a895b (diff) | |
download | chromium_src-63c15a317b1d50109904b0b27bbdec9ad3bec431.zip chromium_src-63c15a317b1d50109904b0b27bbdec9ad3bec431.tar.gz chromium_src-63c15a317b1d50109904b0b27bbdec9ad3bec431.tar.bz2 |
Expand tests to allow "." in keys.
Expand the regex used to test keys so "." is an allowed
character. Needed for perf ids like "mac-release-10.5".
BUG=18597
TEST=a perf_expectations dict with keys containing
"." passes presubmit tests
Review URL: http://codereview.chromium.org/194084
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25978 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/perf_expectations')
-rwxr-xr-x | tools/perf_expectations/tests/perf_expectations_unittest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf_expectations/tests/perf_expectations_unittest.py b/tools/perf_expectations/tests/perf_expectations_unittest.py index bfbf890..47c25d1 100755 --- a/tools/perf_expectations/tests/perf_expectations_unittest.py +++ b/tools/perf_expectations/tests/perf_expectations_unittest.py @@ -121,7 +121,7 @@ class PerfExpectationsUnittest(unittest.TestCase): for key in perf_data: if key == 'load': continue - if not re.match(r"^([\w-]+)/([\w-]+)/([\w-]+)/([\w-]+)$", key): + if not re.match(r"^([\w\.-]+)/([\w\.-]+)/([\w\.-]+)/([\w\.-]+)$", key): bad_keys.append(key) if len(bad_keys) > 0: msg = "perf expectations keys in bad format, expected a/b/c/d" |