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",
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",
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 = [
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",