dev_tools/bash_scripts_test.py
does not guard against interference from user's ~/.gitconfig
#5773
Labels
kind/bug-report
Something doesn't seem to work.
Description of the issue
When running
pytest
in the Cirq repo (orcheck/pytest
), the tests indev_tools/bash_scripts_test.py
run a series of git commands and compares the output against expected values. A few of the tests will fail with very confusing errors if the user has configuredinit.templateDir
in their global~/.gitconfig
file. The reason is that the commandwill generate a "warning: re-init ignored" message, and that in turn causes the tests in
bash_scripts_test.py
to fail because the tests rely on matching exactly the stdout/stderr from the commands.How to reproduce the issue
init.templateDir
, either using agit config
command or by creating a~/.gitconfig
file manually and putting something like this in it:The result will be a bunch of output ending in a failure. The full output is below.
Cirq version
0.16.0.dev
The text was updated successfully, but these errors were encountered: