diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-04-21 16:23:13 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-04-21 16:23:13 +0100 |
commit | 69729de5da6a20036d21d523692c48439b7c88ce (patch) | |
tree | 6ddf9be3a8a86e0aba89258b4926336a00b68f0a /yarns | |
parent | e2d4b597bbdd6a213beea622dd82ee30bd4ccedb (diff) | |
download | distix-69729de5da6a20036d21d523692c48439b7c88ce.tar.gz |
Setup git config for yarn tests
Diffstat (limited to 'yarns')
-rw-r--r-- | yarns/900-implements.yarn | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn index e47bfe5..3c9edbb 100644 --- a/yarns/900-implements.yarn +++ b/yarns/900-implements.yarn @@ -23,6 +23,12 @@ be, and changing there when running various commands. printf "%s" "$MATCH_1" > "$DATADIR/cwd" IMPLEMENTS WHEN user attempts to run distix (.*) + + # Yarn sets $HOME to point at an empty temporary directory. + # Set up a simple git config so tests can use git. + git config --global user.email 'Tomjon <tomjon@example.com>' + git config --global user.name 'Tomjon Tester' + cd "$DATADIR" rm -f attempt.exit attempt.stdout attempt.stderr cd "$(cat cwd || echo .)" |