From 8c96cbc1b6ec4c862e1fa36ef25ce56a00a1bfa6 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Wed, 18 Dec 2019 12:36:58 -0500 Subject: ci: emit names of tests run in Travis (#120) This makes it easier to debug differences in test behaviour between Travis and local developer environments. --- .travis.yml | 12 +++++++++--- tox.ini | 2 ++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 834a5681..9efaad14 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,9 @@ matrix: fast_finish: true include: - python: 3.6 - env: TOXENV=py3 + env: + TOXENV=py3 + NOSE_VERBOSE=2 # List all tests run by nose - install: - git fetch --unshallow - sudo apt-get build-dep -y cloud-init @@ -42,9 +44,13 @@ matrix: # Ubuntu LTS: Integration - sg lxd -c 'tox -e citest -- run --verbose --preserve-data --data-dir results --os-name xenial --test modules/apt_configure_sources_list.yaml --test modules/ntp_servers --test modules/set_password_list --test modules/user_groups --deb cloud-init_*_all.deb' - python: 2.7 - env: TOXENV=py27 + env: + TOXENV=py27 + NOSE_VERBOSE=2 # List all tests run by nose - python: 3.4 - env: TOXENV=xenial + env: + TOXENV=xenial + NOSE_VERBOSE=2 # List all tests run by nose # Travis doesn't support Python 3.4 on bionic, so use xenial dist: xenial - python: 3.6 diff --git a/tox.ini b/tox.ini index fef9643b..846e7e3f 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,8 @@ recreate = True commands = python -m nose {posargs:tests/unittests cloudinit} setenv = LC_ALL = en_US.utf-8 +passenv= + NOSE_VERBOSE [testenv:pycodestyle] basepython = python3 -- cgit v1.2.3