Factor out more of the test suite run config

This commit is contained in:
Jean-Paul Calderone 2018-06-14 12:32:18 -04:00
parent 30380a0d18
commit afa321ae5f

View File

@ -75,9 +75,9 @@ jobs:
sudo -u nobody virtualenv --python python2.7 /tmp/tests
sudo -u nobody /tmp/tests/bin/pip install tox
- run:
- run: &RUN_TESTS
name: "Run test suite"
command: &RUN_TESTS |
command: |
# Run the test suite as a non-root user. This is the expected
# usage some small areas of the test suite assume non-root
# privileges (such as unreadable files being unreadable).
@ -158,8 +158,7 @@ jobs:
sudo -u nobody /tmp/tests/bin/pip install tox
- run:
name: "Run test suite"
command: *RUN_TESTS
<<: *RUN_TESTS
fedora-27: