From 5a13f8dd3f8b9391bec97103459a6befb8c94c9d Mon Sep 17 00:00:00 2001 From: ydshieh Date: Fri, 2 Feb 2024 15:41:46 +0100 Subject: [PATCH] use -v in pytest --- .circleci/create_circleci_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/create_circleci_config.py b/.circleci/create_circleci_config.py index 16b39a4dae40..b44a5fde153b 100644 --- a/.circleci/create_circleci_config.py +++ b/.circleci/create_circleci_config.py @@ -32,7 +32,7 @@ "RUN_PT_FLAX_CROSS_TESTS": False, } # Disable the use of {"s": None} as the output is way too long, causing the navigation on CircleCI impractical -COMMON_PYTEST_OPTIONS = {"max-worker-restart": 0, "dist": "loadfile"} +COMMON_PYTEST_OPTIONS = {"max-worker-restart": 0, "dist": "loadfile", "v": None} DEFAULT_DOCKER_IMAGE = [{"image": "cimg/python:3.8.12"}] @@ -227,7 +227,7 @@ def to_dict(self): # failure. test_command = f"({test_command}) || true" else: - test_command += " || true" + test_command = f"({test_command} | tee tests_output.txt) || true" steps.append({"run": {"name": "Run tests", "command": test_command}}) # Deal with errors