diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-17 03:25:10 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-17 03:25:10 +0000 |
commit | 7534d489ea13fe9fcacc881b7abfe760b3a5513d (patch) | |
tree | 5e0de9be5e61442e7343f475a09d41097fd1ad64 /net | |
parent | 7ffbeeebb06f2268188b274f17fe6003a846f3a1 (diff) | |
download | chromium_src-7534d489ea13fe9fcacc881b7abfe760b3a5513d.zip chromium_src-7534d489ea13fe9fcacc881b7abfe760b3a5513d.tar.gz chromium_src-7534d489ea13fe9fcacc881b7abfe760b3a5513d.tar.bz2 |
Revert r7131
7131 caused duplicates in the tests_fixable.txt file.
Redo the intent of r7131:
Where the test name ends in ".html" AND
The test filename doesn't exist AND
test[:-4] + "svg" does exist AND
test[:-4] + "svg" doesn't exist in tests_fixable.txt THEN
rename the test
Script used below:
let knownSet = foldl f Set.empty testsFixable where
f set (TF.Text _) = set
f set (TF.Entry platforms test _ _)
| platforms == [] || TF.LINUX `elem` platforms = Set.insert test set
| otherwise = set
let f v@(TF.Text _) = return v
f v@(TF.Entry platforms test results comment) =
if ".html" `B8.isSuffixOf` test
then do exists <- fileExist $ B8.unpack test
if not exists
then do let fn = B8.take (B8.length test - 4) test `B8.append` "svg"
exists <- fileExist $ B8.unpack fn
print fn
print $ Set.member fn knownSet
if exists
then if not (Set.member fn knownSet)
then return $ TF.Entry platforms fn results comment
else return $ TF.Text "// Check for comments"
else return v
else return v
else return v
testsFixable' <- mapM f testsFixable
Review URL: http://codereview.chromium.org/14503
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7132 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions