if returncode == 0: print "------- OK! --------" else: # if test failed, add it to the list of failed tests to be reported later self.failed_tests[test] = err print "\n====== FAILED ======" print "See details at the end of test run." print_separator() # main program flow if __name__ == "__main__": # instantiate Tests object if len(sys.argv) > 1: tests = SimpleTests(sys.argv[1]) else: tests = SimpleTests() # go through the procedure step by step tests.print_introduction() tests.clean_results_dir() tests.collect_tests() tests.run() retcode = tests.report() # cleanup old version of lilypond LilyCmd.clean_cache() sys.exit(retcode)
test]) if returncode == 0: print "------- OK! --------" else: # if test failed, add it to the list of failed tests to be reported later self.failed_tests[test] = err print "\n====== FAILED ======" print "See details at the end of test run." print_separator() # main program flow if __name__ == "__main__": # instantiate Tests object if len(sys.argv) > 1: tests = SimpleTests(sys.argv[1]) else: tests = SimpleTests() # go through the procedure step by step tests.print_introduction() tests.clean_results_dir() tests.collect_tests() tests.run() retcode = tests.report() # cleanup old version of lilypond LilyCmd.clean_cache() sys.exit(retcode)