| Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py
|
| index 91344b2d948b48c5f28f0dfeba5b1ef305f0b2f2..3fc63832a94f9a5fa04c1dfe318a4bc5e66a4924 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py
|
| @@ -25,7 +25,6 @@
|
| # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| -
|
| """Generates a fake TestExpectations file consisting of flaky tests from the bot
|
| corresponding to the give port."""
|
|
|
| @@ -39,7 +38,6 @@ from webkitpy.layout_tests.port import builders
|
| from webkitpy.layout_tests.models.test_expectations import TestExpectations, PASS
|
| from webkitpy.layout_tests.models.test_expectations import TestExpectationLine
|
|
|
| -
|
| _log = logging.getLogger(__name__)
|
|
|
|
|
| @@ -140,6 +138,7 @@ class BotTestExpectationsFactory(object):
|
| return None
|
| return BotTestExpectations(results_json)
|
|
|
| +
|
| class BotTestExpectations(object):
|
| # FIXME: Get this from the json instead of hard-coding it.
|
| RESULT_TYPES_TO_IGNORE = ['N', 'X', 'Y'] # NO_DATA, SKIP, NOTRUN
|
| @@ -177,6 +176,7 @@ class BotTestExpectations(object):
|
|
|
| def unexpected_results_by_path(self):
|
| """For tests with unexpected results, returns original expectations + results."""
|
| +
|
| def exp_to_string(exp):
|
| return TestExpectations.EXPECTATIONS_TO_STRING.get(exp, None).upper()
|
|
|
|
|