]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Use a test-specific name/email for the git calls
authorZack Cerza <zack@cerza.org>
Tue, 1 Jul 2014 16:56:41 +0000 (10:56 -0600)
committerZack Cerza <zack@cerza.org>
Tue, 1 Jul 2014 16:56:41 +0000 (10:56 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/test/test_repo_utils.py

index 224011203ec7d2658ced25a15deaf9d741a970e0..9e94c1af0f6006ecc06df9feccc03ea2631341fc 100644 (file)
@@ -20,6 +20,18 @@ class TestRepoUtils(object):
             stdout=subprocess.PIPE,
         )
         assert proc.wait() == 0
+        proc = subprocess.Popen(
+            ('git', 'config', 'user.email', 'test@ceph.com'),
+            cwd=self.src_path,
+            stdout=subprocess.PIPE,
+        )
+        assert proc.wait() == 0
+        proc = subprocess.Popen(
+            ('git', 'config', 'user.name', 'Test User'),
+            cwd=self.src_path,
+            stdout=subprocess.PIPE,
+        )
+        assert proc.wait() == 0
         proc = subprocess.Popen(
             ('git', 'commit', '--allow-empty', '--allow-empty-message',
              '--no-edit'),