Mercurial > kallithea
changeset 7265:205c0ed5b628
tests: set EMAIL on git commit
If git user email is not set yet, git requires the EMAIL environment variable
to be set. If it wasn't set in the test environment, test_add_submodule would
fail with something like:
fatal: unable to auto-detect email address
author | domruf <dominikruf@gmail.com> |
---|---|
date | Thu, 15 Mar 2018 19:56:37 +0100 |
parents | 760e65b33a2b |
children | b3ef9012be54 |
files | kallithea/tests/other/test_vcs_operations.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/tests/other/test_vcs_operations.py Tue Mar 13 23:52:10 2018 +0100 +++ b/kallithea/tests/other/test_vcs_operations.py Thu Mar 15 19:56:37 2018 +0100 @@ -662,7 +662,7 @@ # add submodule stdout, stderr = Command(TESTS_TMP_PATH).execute('git clone', fork_url, dest_dir) stdout, stderr = Command(dest_dir).execute('git submodule add', clone_url, 'testsubmodule') - stdout, stderr = Command(dest_dir).execute('git commit -am "added testsubmodule pointing to', clone_url, '"') + stdout, stderr = Command(dest_dir).execute('git commit -am "added testsubmodule pointing to', clone_url, '"', EMAIL=TEST_USER_ADMIN_EMAIL) stdout, stderr = Command(dest_dir).execute('git push', fork_url, 'master') # check for testsubmodule link in files page