]> khamidou — GitHub mirrors - arcanist.git/commit
Allow an arc test to execute without a git author configured
authorepriestley <git@epriestley.com>
Sun, 4 Oct 2015 15:41:48 +0000 (08:41 -0700)
committerepriestley <git@epriestley.com>
Sun, 4 Oct 2015 15:41:48 +0000 (08:41 -0700)
commit6966be3e7e518b35f75e18f366aecdbe2611e684
tree750724a994eeef6dd8ec68ef2226b3aaac8d6edc
parent1b4a3e0c5eb94dafaee3dad2752bbb30db8b8350
Allow an arc test to execute without a git author configured

Summary:
On `sbuild`, we currently get a failure on this test. Use an explicit `--author` so we can run the test even if `user.email` and `user.name` are not set in global Git config.

```
   FAIL  ArcanistBundleTestCase::testGitRepository
15 EXCEPTION (CommandException): Command failed with error #128!
16 COMMAND
17 git commit -m 'Mark koan2 +x and edit it.'
18
19 STDOUT
20 (empty)
21
22 STDERR
23
24 *** Please tell me who you are.
25
26 Run
27
28   git config --global user.email "you@example.com"
29   git config --global user.name "Your Name"
30
31 to set your account's default identity.
32 Omit --global to set the identity only in this repository.
33
34 fatal: empty ident name (for <builder@sbuild001.phacility.net>) not allowed
```

Test Plan: Ran `arc unit --everything`. Will verify in production.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D14232
src/parser/__tests__/ArcanistBundleTestCase.php