()
| 228 | return line[len(prefix):end] if end else line[len(prefix):] |
| 229 | |
| 230 | def read_cl_options(): |
| 231 | |
| 232 | parser = OptionParser() |
| 233 | parser.add_option("-o", "--output", dest="output", default="test_results.xml", help="resulting log file. Default testlog.log") |
| 234 | parser.add_option("-i", "--include", dest="input", default="testlog.log", help="The path to the original log file to parse") |
| 235 | |
| 236 | (options, args) = parser.parse_args() |
| 237 | |
| 238 | return options |
| 239 | |
| 240 | |
| 241 | def main(): |