1
0
Fork 0

Avoid issues with git signatures when running tests

pull/7995/head
Jordi Boggiano 2019-02-18 17:00:57 +01:00
parent d381b3a781
commit 169fb2347a
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 7 additions and 0 deletions

View File

@ -189,6 +189,7 @@ class ArchivableFilesFinderTest extends TestCase
'git init && '. 'git init && '.
'git config user.email "you@example.com" && '. 'git config user.email "you@example.com" && '.
'git config user.name "Your Name" && '. 'git config user.name "Your Name" && '.
'git config commit.gpgsign false && '.
'git add .git* && '. 'git add .git* && '.
'git commit -m "ignore rules" && '. 'git commit -m "ignore rules" && '.
'git add . && '. 'git add . && '.

View File

@ -125,6 +125,12 @@ class ArchiveManagerTest extends ArchiverTest
throw new \RuntimeException('Could not config: '.$this->process->getErrorOutput()); throw new \RuntimeException('Could not config: '.$this->process->getErrorOutput());
} }
$result = $this->process->execute('git config commit.gpgsign false', $output, $this->testDir);
if ($result > 0) {
chdir($currentWorkDir);
throw new \RuntimeException('Could not config: '.$this->process->getErrorOutput());
}
$result = $this->process->execute('git config user.name "Your Name"', $output, $this->testDir); $result = $this->process->execute('git config user.name "Your Name"', $output, $this->testDir);
if ($result > 0) { if ($result > 0) {
chdir($currentWorkDir); chdir($currentWorkDir);