suites = [] suites.append(api_suite) if ostype == "posix": suites.append(cli_suite) # This is primarily of interest to developers altering the test suite, # so don't enable it for now. The testsuite suite tends to emit a bunch # of harmless but noisy errors to the screen due to the way it exercises # various corner cases. #testsuite_suite = find_tests("testsuite", onlyval, startattest, output) #suites.append(testsuite_suite) # Initialize the baseline results and load them baseline = baseline.BaseLine(bfile, generate) baseline.load() if sstdout: testlogfp = None else: # Make sure we capture stdout testlogfd, testlogpath = tempfile.mkstemp(suffix='.pkg-test.log') testlogfp = os.fdopen(testlogfd, "w") print("# logging to {0}".format(testlogpath)) sys.stdout = testlogfp if timing_file: timing_file = os.path.join(os.getcwd(), "timing_info.txt") if os.path.exists(timing_file): os.remove(timing_file)
elif not gui.testutils.check_if_a11y_enabled(): print "# Accessibility not enabled, GUI " "tests disabled." else: gui_suite = find_tests("gui", onlyval, startattest, output, time_estimates) suites.append(gui_suite) # This is primarily of interest to developers altering the test suite, # so don't enable it for now. The testsuite suite tends to emit a bunch # of harmless but noisy errors to the screen due to the way it exercises # various corner cases. # testsuite_suite = find_tests("testsuite", onlyval, startattest, output) # suites.append(testsuite_suite) # Initialize the baseline results and load them baseline = baseline.BaseLine(bfile, generate) baseline.load() # Make sure we capture stdout testlogfd, testlogpath = tempfile.mkstemp(suffix=".pkg-test.log") testlogfp = os.fdopen(testlogfd, "w") print "# logging to %s" % testlogpath sys.stdout = testlogfp if timing_file: timing_file = os.path.join(os.getcwd(), "timing_info.txt") if os.path.exists(timing_file): os.remove(timing_file) # Set up coverage for cli tests if do_coverage: cov_env = {"COVERAGE_FILE": "%s/pkg5" % covdir}