Skip to content

Commit e17d673

Browse files
committed
Override $HOME to avoid touching the actual $HOME.
1 parent 50fb4f6 commit e17d673

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/test/src/
2+
/test/home/

test/helper.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
[[ -z "$SHUNIT2" ]] && SHUNIT2=/usr/share/shunit2/shunit2
22
[[ -n "$ZSH_VERSION" ]] && setopt shwordsplit
33

4+
export HOME="$PWD/test/home"
5+
export PATH="$PWD/bin:$PATH"
6+
7+
mkdir -p "$HOME"
8+
49
. ./share/ruby-install/ruby-install.sh
510
. ./share/ruby-install/functions.sh
611

7-
export PATH="$PWD/bin:$PATH"
8-
912
function setUp() { return; }
1013
function tearDown() { return; }
1114
function oneTimeTearDown() { return; }

0 commit comments

Comments
 (0)