示例#1
0
文件: run.py 项目: omniosorg/pkg5
        if res.mismatches:
            exitval = 1

    if testlogfp:
        testlogfp.close()

    # Update baseline results and display mismatches (failures)

    if onlyval[0] != "":
        # Do not overwrite failure file if running selected tests
        failfile = None
    else:
        failfile = 'failures.3'

    baseline.store()
    baseline.reportfailures(failfile)

    # Stop and save coverage data for API tests, and combine coverage data
    # from all processes.
    if do_coverage:
        cov.stop()
        cov.save()
        newenv = os.environ.copy()
        newenv.update(cov_env)
        subprocess.Popen(["coverage", "combine"], env=newenv).wait()
        os.rename("{0}/pkg5".format(covdir), ".coverage")
        shutil.rmtree(covdir)

        omits = [
            # These mako templates fail.
            "*etc_pkg_*mako",
示例#2
0
            exitval = 1
            print(file=sys.stderr)
            print(e, file=sys.stderr)
            break
        except pkg5unittest.TestStopException as e:
            exitval = 1
            print(file=sys.stderr)
            break
        if res.mismatches:
            exitval = 1

    testlogfp.close()

    # Update baseline results and display mismatches (failures)
    baseline.store()
    baseline.reportfailures()

    # Stop and save coverage data for API tests, and combine coverage data
    # from all processes.
    if do_coverage:
        cov.stop()
        cov.save()
        newenv = os.environ.copy()
        newenv.update(cov_env)
        subprocess.Popen(["coverage", "combine"], env=newenv).wait()
        os.rename("{0}/pkg5".format(covdir), ".coverage")
        shutil.rmtree(covdir)

        omits = [
            # These mako templates fail.
            "*etc_pkg_*mako",
示例#3
0
                        print(e, file=sys.stderr)
                        break
                except pkg5unittest.TestStopException as e:
                        exitval = 1
                        print(file=sys.stderr)
                        break
                if res.mismatches:
                        exitval = 1

        if testlogfp:
                testlogfp.close()

        # Update baseline results and display mismatches (failures)
        baseline.store()
        if six.PY3:
                baseline.reportfailures('failures.3')
        else:
                baseline.reportfailures()

        # Stop and save coverage data for API tests, and combine coverage data
        # from all processes.
        if do_coverage:
                cov.stop()
                cov.save()
                newenv = os.environ.copy()
                newenv.update(cov_env)
                subprocess.Popen(["coverage", "combine"], env=newenv).wait()
                os.rename("{0}/pkg5".format(covdir), ".coverage")
                shutil.rmtree(covdir)

                omits = [
示例#4
0
文件: run.py 项目: aszeszo/test
            exitval = 1
            print >> sys.stderr
            print >> sys.stderr, e
            break
        except pkg5unittest.TestStopException, e:
            exitval = 1
            print >> sys.stderr
            break
        if res.mismatches:
            exitval = 1

    testlogfp.close()

    # Update baseline results and display mismatches (failures)
    baseline.store()
    baseline.reportfailures()

    # Stop and save coverage data for API tests, and combine coverage data
    # from all processes.
    if do_coverage:
        cov.stop()
        cov.save()
        newenv = os.environ.copy()
        newenv.update(cov_env)
        subprocess.Popen(["coverage", "combine"], env=newenv).wait()
        os.rename("%s/pkg5" % covdir, ".coverage")
        shutil.rmtree(covdir)

        omits = [
            # These mako templates fail.
            "*etc_pkg_*mako",