Have tests set the GIT_PYTHON_TRACE by default, to ensure that on error
we have a detailed log of all git commands executed.
Default to setting basic tracing, and support passing through of the
environment variable via tox.ini so that users may control the level of
logging by setting the variable.
# disable all output from GitPython
GIT_PYTHON_TRACE= tox ...
# log all commands executed, default for tests
GIT_PYTHON_TRACE=1 tox ...
# includes stdout/stderr from GitPython in logged output
GIT_PYTHON_TRACE=full tox ...
Change-Id: I71eb8f572bc2afd70f9a44f82499565fbbd4e872
Provides a simple tool 'build-test-tree' and adds a tox environment
command 'build-tree' which takes as arguments a list of yaml files
separated by spaces of test trees to recreate for the developer to
experiment with different layouts and commands.
This simplifies the creation for development purposes some of the
complex scenarios that need to be tested, to provide a mechanism for
any developer to quickly exercise various git commands directly to
understand the impact before trying to apply such changes to the
existing code.
Example execution:
tox -e build-tree -- git_upstream/tests/commands/import/scenarios/\
import_switch_branches_search_ref_custom_namespace.yaml
Change-Id: I801bc3e05197d1ce41e703876ce6f46a705ad935
Support using python 3 interpreter.
Fix imports and metaclass definition to be python 2/3 compatible.
Update min requirements to use GitPython that is python 3 compatible
and works with openstack global-requirements.
Use '//' for integer division and used brackets around tuple iterations.
Change-Id: I51617a433987d1549e0686c1feda01f971b13fa0
Ensure the coverage package is installed and fix the coverage command
line used from tox to cover the correct package name for the test
environment while excluding the unit tests.
Change-Id: Ieaca81e65ed2dbf7e7070be18a416f1858b48bb4
Include E125 in PEP8 checks, it does not cause any failures and turning
on this rule will help prevent violations in the future.
Change-Id: I9b0fa6e63cc017af8b90a54d6f4f58dd43d97440
As per the governance resolution https://review.openstack.org/119875,
projects should have a docs environment in their tox.ini testing
interface. Rename the doc environment to docs.
Change-Id: I10f561c2f8c609eeec80de19a21d63ef3583388a