From c75705e75383bf759a15c9316b0b4d29687e559d Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Wed, 30 Oct 2013 16:37:34 +0000 Subject: Modify morph test suite to use the new cmdtest --- yarns/morph.shell-lib | 19 +++++++++++++++++++ yarns/print-architecture.yarn | 1 + 2 files changed, 20 insertions(+) diff --git a/yarns/morph.shell-lib b/yarns/morph.shell-lib index 58521ee8..b11ddab1 100644 --- a/yarns/morph.shell-lib +++ b/yarns/morph.shell-lib @@ -158,3 +158,22 @@ if ! env | grep '^SRCDIR=' > /dev/null then export SRCDIR="$(pwd)" fi + + +# Added until it's fixed in upstream. +# It's a solution to create an empty home directory each execution +export HOME="$DATADIR/home" +if [ ! -d "$HOME" ] +then + mkdir "$HOME" +fi + +# Generating a default git user to run the tests +if ! test -r "$HOME/.gitconfig" +then + cat > "$HOME/.gitconfig" < "$DATADIR/stdout" 2> "$DATADIR/stderr" IMPLEMENTS THEN stdout contains a single line -- cgit v1.2.1