Changeset - 7db1bcf1d95b
[Not reviewed]
default
0 1 0
Mads Kiilerich - 9 years ago 2016-06-14 01:12:09
madski@unity3d.com
tests: drop setting EMAIL environment variable before git commit - it doesn't work on Windows and seems unnecessary

To minimize the risk, we still remove it from the environment used for running the commands.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/other/manual_test_vcs_operations.py
Show inline comments
 
@@ -67,6 +67,7 @@ class Command(object):
 
        testenv = dict(os.environ)
 
        testenv['LANG'] = 'en_US.UTF-8'
 
        testenv['LANGUAGE'] = 'en_US:en'
 
        testenv.pop('EMAIL', None) # might not be necessary
 
        p = Popen(command, shell=True, stdout=PIPE, stderr=PIPE, cwd=self.cwd, env=testenv)
 
        stdout, stderr = p.communicate()
 
        if DEBUG:
 
@@ -125,7 +126,7 @@ def _add_files_and_push(vcs, DEST, **kwa
 
                i, author_str, added_file
 
            )
 
        elif vcs == 'git':
 
            cmd = """EMAIL="me@example.com" git commit -m "committed new %s" --author "%s" "%s" """ % (
 
            cmd = """git commit -m "committed new %s" --author "%s" "%s" """ % (
 
                i, author_str, added_file
 
            )
 
        Command(cwd).execute(cmd)
0 comments (0 inline, 0 general)