示例#1
0
文件: run.py 项目: omniosorg/pkg5
            break
        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.
示例#2
0
文件: run.py 项目: aszeszo/test
        except pkg5unittest.Pkg5TestCase.failureException, e:
            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.