コード例 #1
0
            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)
コード例 #2
0
ファイル: automated_tests.py プロジェクト: EQ4/openlilylib
                                                        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)