Skip to content

Commit

Permalink
Autolog output directory is driving the suite name in trtl results
Browse files Browse the repository at this point in the history
Fixes: Issue F5Networks#398

Problem:
When tox is run in nightly, the --autolog-outputdir provided to the tox command causes the suite name to be rooted (and thus named) from the / directory on the worker. We need to provide a .pytest.rootdir file near the tests, so suite name is made relative to the location of the tests, and thus is not filled with redundancies.

Analysis:
Did not commit these files to the repo, but had the .pytest.rootdir files added via the tempest_tests.sh script in systest/scripts. This will prevent the inevitable questions about why these files exist in the public repo.

Tests:
Ran manual tests and manually inspected the names of the suites.
  • Loading branch information
Paul Breaux committed Jan 31, 2017
1 parent 0ecfd0f commit 661aad0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions systest/scripts/tempest_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ set -x
# Activate our tempest virtualenv
source ${TEMPEST_VENV_ACTIVATE}

# Create .pytest.rootdir files at the root of the driver and neutron-lbaas
# respositories to make the results suite names be rooted at the top-level
# of the respective test repository
touch ${MAKEFILE_DIR}/../f5lbaasdriver/test/tempest/tests/.pytest.rootdir
touch ${NEUTRON_LBAAS_DIR}/neutron-lbaas/tests/tempest/v2/.pytest.rootdir

# Navigate to the root of the repo, where the tox.ini file is found
cd ${MAKEFILE_DIR}/../
tox -e tempest -c tox.ini -- \
Expand Down

0 comments on commit 661aad0

Please sign in to comment.