diff options
author | dpranke@google.com <dpranke@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-03 23:47:21 +0000 |
---|---|---|
committer | dpranke@google.com <dpranke@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-03 23:47:21 +0000 |
commit | 2ba5cda1fd02703c0066d297bcfb5848d6d926b9 (patch) | |
tree | e0f1db890f36c636fbab81650bcbefa3854924fc | |
parent | bab26088d4634c77cdc7d4b0b0e6f655bca1186f (diff) | |
download | chromium_src-2ba5cda1fd02703c0066d297bcfb5848d6d926b9.zip chromium_src-2ba5cda1fd02703c0066d297bcfb5848d6d926b9.tar.gz chromium_src-2ba5cda1fd02703c0066d297bcfb5848d6d926b9.tar.bz2 |
Fix the rebaselining tool - check to make sure that we actually were passed
in tests before trying to add them as PASSes.
R=atwilson@chromium.org
TEST='type ./rebaseline.sh in the layout_tests dir'
BUG=none
Review URL: http://codereview.chromium.org/467010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33750 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/tools/layout_tests/layout_package/test_expectations.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/tools/layout_tests/layout_package/test_expectations.py b/webkit/tools/layout_tests/layout_package/test_expectations.py index 1578a57..bcf11c6 100644 --- a/webkit/tools/layout_tests/layout_package/test_expectations.py +++ b/webkit/tools/layout_tests/layout_package/test_expectations.py @@ -597,9 +597,10 @@ class TestExpectationsFile: expectations = set([PASS]) options = [] modifiers = [] - for test in self._full_test_list: - if not test in self._test_list_paths: - self._AddTest(test, modifiers, expectations, options) + if self._full_test_list: + for test in self._full_test_list: + if not test in self._test_list_paths: + self._AddTest(test, modifiers, expectations, options) def _GetOptionsList(self, listString): return [part.strip().lower() for part in listString.strip().split(' ')] |