From b9c0d22045ffc1d607c10487cdfad8241f51540f Mon Sep 17 00:00:00 2001 From: Eric Seppanen Date: Tue, 4 May 2021 12:25:18 -0700 Subject: [PATCH] circleci: shrink python tracebacks Mostly we're not testing python code, so verbose python tracebacks are unhelpful. Add --tb=short to the pytest args to cut down on the noise. To override this during testing, set the "extra_params" parameter on the circleci job to "--tb=auto" or "--tb=long". --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 11137d473c..821238dfae 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -154,7 +154,7 @@ jobs: if [ -n "$TEST_FILTER" ]; then TEST_FILTER="-k $TEST_FILTER" fi - pytest $TEST_FILE $TEST_FILTER $EXTRA_PARAMS + pytest --tb=short $TEST_FILE $TEST_FILTER $EXTRA_PARAMS - run: # CircleCI artifacts are preserved one file at a time, so skipping # this step isn't a good idea. If you want to extract the