# HG changeset patch # User domruf # Date 1521140197 -3600 # Node ID 205c0ed5b628d4cde325e5fd10466a2df6c0f42d # Parent 760e65b33a2b117b2db3fee13d076042d207c64a 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 diff -r 760e65b33a2b -r 205c0ed5b628 kallithea/tests/other/test_vcs_operations.py --- 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