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