| OLD | NEW |
| 1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | 28 |
| 29 import base64 | 29 import base64 |
| 30 import time | 30 import time |
| 31 | 31 |
| 32 from webkitpy.common.system.crashlogs import CrashLogs |
| 33 from webkitpy.layout_tests.models import test_run_results |
| 34 from webkitpy.layout_tests.models.test_configuration import TestConfiguration |
| 32 from webkitpy.layout_tests.port.base import Port, VirtualTestSuite | 35 from webkitpy.layout_tests.port.base import Port, VirtualTestSuite |
| 33 from webkitpy.layout_tests.port.driver import DeviceFailure, Driver, DriverOutpu
t | 36 from webkitpy.layout_tests.port.driver import DeviceFailure, Driver, DriverOutpu
t |
| 34 from webkitpy.layout_tests.models.test_configuration import TestConfiguration | |
| 35 from webkitpy.layout_tests.models import test_run_results | |
| 36 from webkitpy.common.system.filesystem_mock import MockFileSystem | |
| 37 from webkitpy.common.system.crashlogs import CrashLogs | |
| 38 | 37 |
| 39 | 38 |
| 40 # This sets basic expectations for a test. Each individual expectation | 39 # This sets basic expectations for a test. Each individual expectation |
| 41 # can be overridden by a keyword argument in TestList.add(). | 40 # can be overridden by a keyword argument in TestList.add(). |
| 42 class TestInstance(object): | 41 class TestInstance(object): |
| 43 | 42 |
| 44 def __init__(self, name): | 43 def __init__(self, name): |
| 45 self.name = name | 44 self.name = name |
| 46 self.base = name[(name.rfind("/") + 1):name.rfind(".")] | 45 self.base = name[(name.rfind("/") + 1):name.rfind(".")] |
| 47 self.crash = False | 46 self.crash = False |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 else: | 627 else: |
| 629 image = test.actual_image | 628 image = test.actual_image |
| 630 return DriverOutput(actual_text, image, test.actual_checksum, audio, | 629 return DriverOutput(actual_text, image, test.actual_checksum, audio, |
| 631 crash=(crash or web_process_crash), crashed_process_
name=crashed_process_name, | 630 crash=(crash or web_process_crash), crashed_process_
name=crashed_process_name, |
| 632 crashed_pid=crashed_pid, crash_log=crash_log, | 631 crashed_pid=crashed_pid, crash_log=crash_log, |
| 633 test_time=time.time() - start_time, timeout=test.tim
eout, error=test.error, pid=self.pid, | 632 test_time=time.time() - start_time, timeout=test.tim
eout, error=test.error, pid=self.pid, |
| 634 leak=test.leak) | 633 leak=test.leak) |
| 635 | 634 |
| 636 def stop(self): | 635 def stop(self): |
| 637 self.started = False | 636 self.started = False |
| OLD | NEW |