Factor out the duplicate test step command

This commit is contained in:
Jean-Paul Calderone 2018-06-14 09:45:28 -04:00
parent 8e782aa33f
commit d728c245f3

View File

@ -73,7 +73,7 @@ jobs:
- run:
name: "Run test suite"
command: |
command: &RUN_TESTS |
# 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).
@ -142,12 +142,4 @@ jobs:
- run:
name: "Run test suite"
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).
#
# Also run with /tmp as a workdir because the non-root user won't
# be able to create the tox working filesystem state in the source
# checkout because it is owned by root.
sudo -u nobody /tmp/tests/bin/tox -c /tmp/project/tox.ini --workdir /tmp -e py27
command: *RUN_TESTS