convert-test-expectations 578 B

1234567891011121314151617181920
  1. #!/usr/bin/python
  2. # FIXME: Delete this file after all of the TestExpectations are converted.
  3. import sys
  4. from webkitpy.common.host import Host
  5. from webkitpy.layout_tests.models.test_expectations import TestExpectationParser
  6. host = Host()
  7. port = host.port_factory.get(sys.argv[1])
  8. filename = sys.argv[2]
  9. contents = host.filesystem.read_text_file(filename)
  10. parser = TestExpectationParser(port, [], False)
  11. expectation_lines = parser.parse(filename, contents)
  12. for line in expectation_lines:
  13. new_line = line.to_string(parser._test_configuration_converter)
  14. print new_line