Thread (4 messages) flat view 4 messages, 4 authors, 2016-06-15

Re: [PATCH] tests: factor HOME=$(pwd) in test-lib.sh

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2016-06-15 22:49:24

Possibly related (same subject, not in this thread)

On Mon, Aug 30, 2010 at 09:50, Matthieu Moy [off-list ref] wrote:
The same pattern is used in many tests, and makes it easy for new ones to
rely on $HOME being a trashable, clean, directory.
Looks good, but why not:
+HOME=$(pwd)
+export HOME
This instead:

HOME=$TRASH_DIRECTORY
export HOME

Looks like it might be more correct given this (always an absolute
path), but I haven't tested:

case "$test" in
/*) TRASH_DIRECTORY="$test" ;;
 *) TRASH_DIRECTORY="$TEST_DIRECTORY/$test" ;;
esac
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help