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

Side by Side Diff: webkit/tools/layout_tests/webkitpy/update_expectations_from_dashboard.py

Issue 545145: Move the layout test scripts into a 'webkitpy' subdirectory in preparation... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: try to de-confuse svn and the try bots Created 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Script to read in updates in JSON form from the layout test dashboard 6 """Script to read in updates in JSON form from the layout test dashboard
7 and apply them to test_expectations.txt. 7 and apply them to test_expectations.txt.
8 8
9 Usage: 9 Usage:
10 1. Go to http://src.chromium.org/viewvc/chrome/trunk/src/webkit/tools/ 10 1. Go to http://src.chromium.org/viewvc/chrome/trunk/src/webkit/tools/
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 os.path.dirname(sys.argv[0])) 467 os.path.dirname(sys.argv[0]))
468 path_to_expectations = os.path.join(path_to_expectations, 468 path_to_expectations = os.path.join(path_to_expectations,
469 "test_expectations.txt") 469 "test_expectations.txt")
470 470
471 old_expectations = open(path_to_expectations).read() 471 old_expectations = open(path_to_expectations).read()
472 new_expectations = UpdateExpectations(old_expectations, updates) 472 new_expectations = UpdateExpectations(old_expectations, updates)
473 open(path_to_expectations, 'w').write(new_expectations) 473 open(path_to_expectations, 'w').write(new_expectations)
474 474
475 if '__main__' == __name__: 475 if '__main__' == __name__:
476 main() 476 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698