246 | | if len(sys.argv) == 1 : |
247 | | sys.argv.append("-") |
248 | | if len(sys.argv) != 2 : |
249 | | sys.stderr.write("usage : %s [inputfile.ps]\n" % sys.argv[0]) |
250 | | sys.exit(-1) |
251 | | else : |
252 | | testsuite = TestSuite(sys.argv[1]) |
253 | | testsuite.genTestSuite() |
254 | | testsuite.runTests() |
255 | | testsuite.genHTMLReport("%s.html" % testsuite.md5sum) |
| 246 | try : |
| 247 | if len(sys.argv) == 1 : |
| 248 | sys.argv.append("-") |
| 249 | if len(sys.argv) != 2 : |
| 250 | sys.stderr.write("usage : %s [inputfile.ps]\n" % sys.argv[0]) |
| 251 | sys.exit(-1) |
| 252 | else : |
| 253 | testsuite = TestSuite(sys.argv[1]) |
| 254 | testsuite.genTestSuite() |
| 255 | testsuite.runTests() |
| 256 | testsuite.genHTMLReport("%s.html" % testsuite.md5sum) |
| 257 | except KeyboardInterrupt : |
| 258 | sys.stderr.write("Interrupted at user's request !\n") |