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

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py

Issue 654063002: Switch webkitpy to use the typ test framework (delete webkitpy.test). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix typo for bot_test_expectations Created 6 years, 2 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 # Copyright (C) 2010 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze ged 2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze ged
3 # Copyright (C) 2011 Apple Inc. All rights reserved. 3 # Copyright (C) 2011 Apple Inc. All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 from webkitpy.common.system.crashlogs_unittest import make_mock_crash_report_dar win 46 from webkitpy.common.system.crashlogs_unittest import make_mock_crash_report_dar win
47 from webkitpy.common.system.systemhost import SystemHost 47 from webkitpy.common.system.systemhost import SystemHost
48 from webkitpy.common.host import Host 48 from webkitpy.common.host import Host
49 from webkitpy.common.host_mock import MockHost 49 from webkitpy.common.host_mock import MockHost
50 50
51 from webkitpy.layout_tests import port 51 from webkitpy.layout_tests import port
52 from webkitpy.layout_tests import run_webkit_tests 52 from webkitpy.layout_tests import run_webkit_tests
53 from webkitpy.layout_tests.models import test_run_results 53 from webkitpy.layout_tests.models import test_run_results
54 from webkitpy.layout_tests.port import Port 54 from webkitpy.layout_tests.port import Port
55 from webkitpy.layout_tests.port import test 55 from webkitpy.layout_tests.port import test
56 from webkitpy.test.skip import skip_if
57 from webkitpy.tool import grammar 56 from webkitpy.tool import grammar
58 from webkitpy.tool.mocktool import MockOptions 57 from webkitpy.tool.mocktool import MockOptions
59 58
60 59
61 def parse_args(extra_args=None, tests_included=False, new_results=False, print_n othing=True): 60 def parse_args(extra_args=None, tests_included=False, new_results=False, print_n othing=True):
62 extra_args = extra_args or [] 61 extra_args = extra_args or []
63 args = [] 62 args = []
64 if not '--platform' in extra_args: 63 if not '--platform' in extra_args:
65 args.extend(['--platform', 'test']) 64 args.extend(['--platform', 'test'])
66 if not new_results: 65 if not new_results:
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 stderr = StringIO.StringIO() 1051 stderr = StringIO.StringIO()
1053 res = run_webkit_tests.main(['--platform', 'test', '--exit-after-n-failu res', '1', 1052 res = run_webkit_tests.main(['--platform', 'test', '--exit-after-n-failu res', '1',
1054 'failures/unexpected/missing_text.html', 1053 'failures/unexpected/missing_text.html',
1055 'failures/unexpected/missing_image.html'], 1054 'failures/unexpected/missing_image.html'],
1056 stdout, stderr) 1055 stdout, stderr)
1057 self.assertEqual(res, test_run_results.EARLY_EXIT_STATUS) 1056 self.assertEqual(res, test_run_results.EARLY_EXIT_STATUS)
1058 self.assertEqual(stdout.getvalue(), 1057 self.assertEqual(stdout.getvalue(),
1059 ('\n' 1058 ('\n'
1060 'Regressions: Unexpected missing results (1)\n' 1059 'Regressions: Unexpected missing results (1)\n'
1061 ' failures/unexpected/missing_image.html [ Missing ]\n\n')) 1060 ' failures/unexpected/missing_image.html [ Missing ]\n\n'))
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/common/system/outputcapture.py ('k') | Tools/Scripts/webkitpy/test/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698