From 6f5a5c1239752c861b39173edaa2198ba4b1bb03 Mon Sep 17 00:00:00 2001 From: James Graham Date: Tue, 13 Nov 2018 13:41:18 +0000 Subject: [PATCH] Bug 1506181 [wpt PR 14006] - Fixup logging in stability checks , a=testonly Automatic update from web-platform-testsFixup logging in stability checks -- wpt-commits: bc002a53c26d392cb6ecf23cc0e62ab7cbe46e5c wpt-pr: 14006 --- testing/web-platform/tests/tools/ci/check_stability.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testing/web-platform/tests/tools/ci/check_stability.py b/testing/web-platform/tests/tools/ci/check_stability.py index fa0cc3ba88a1..cbed7a3521d3 100644 --- a/testing/web-platform/tests/tools/ci/check_stability.py +++ b/testing/web-platform/tests/tools/ci/check_stability.py @@ -11,7 +11,7 @@ here = os.path.dirname(__file__) wpt_root = os.path.abspath(os.path.join(here, os.pardir, os.pardir)) sys.path.insert(0, wpt_root) -from tools.wpt import testfiles +from tools.wpt import run as wptrun, testfiles from tools.wpt.testfiles import get_git_cmd from tools.wpt.virtualenv import Virtualenv from tools.wpt.utils import Kwargs @@ -32,7 +32,7 @@ def setup_logging(): handler.setFormatter(formatter) logger.addHandler(handler) logger.setLevel(logging.DEBUG) - + wptrun.setup_logging({}) def do_delayed_imports(): global wptrunner, run_step, write_inconsistent, write_slow_tests, write_results @@ -208,6 +208,8 @@ def main(): def run(venv, wpt_args, **kwargs): do_delayed_imports() + setup_logging() + retcode = 0 wpt_args = create_parser().parse_args(wpt_args) @@ -229,8 +231,6 @@ def run(venv, wpt_args, **kwargs): except OSError: pass - setup_logging() - pr_number = pr() with TravisFold("browser_setup"):