Skip to content

Commit

Permalink
test: Make PATH CI portable
Browse files Browse the repository at this point in the history
  • Loading branch information
rmg committed Mar 28, 2014
1 parent 46a204b commit 18a089b
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 9 deletions.
3 changes: 2 additions & 1 deletion test/export-systemd.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ PATH=$(dirname $(which node)) $NF export \
--out sandbox --type systemd \
--env fixtures/env.env --procfile fixtures/Procfile

$SED -i -e "s%$(pwd)%TEST_DIR%g" sandbox/*
$SED -i -e "s%$(pwd)%TEST_DIR%g" \
-e "s%$(dirname $(which node))%TEST_PATH%g" sandbox/*

diff -r -u fixtures/systemd sandbox 1>&2 || exit $?
3 changes: 2 additions & 1 deletion test/export-upstart-single.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ PATH=$(dirname $(which node)) $NF export \
--out sandbox --type upstart-single \
--env fixtures/env.env --procfile fixtures/Procfile

$SED -i -e "s%$(pwd)%TEST_DIR%g" sandbox/*
$SED -i -e "s%$(pwd)%TEST_DIR%g" \
-e "s%$(dirname $(which node))%TEST_PATH%g" sandbox/*

diff -r -u fixtures/upstart-single sandbox 1>&2 || exit $?
3 changes: 2 additions & 1 deletion test/export-upstart.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ PATH=$(dirname $(which node)) $NF export \
--out sandbox --type upstart \
--env fixtures/env.env --procfile fixtures/Procfile

$SED -i -e "s%$(pwd)%TEST_DIR%g" sandbox/*
$SED -i -e "s%$(pwd)%TEST_DIR%g" \
-e "s%$(dirname $(which node))%TEST_PATH%g" sandbox/*

diff -r -u fixtures/upstart sandbox 1>&2 || exit $?
2 changes: 1 addition & 1 deletion test/fixtures/upstart-single/upstart-single-test-api.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env bind=0.0.0.0
env mysql_host=localhost
env mysql_user=toast
env mysql_pass=peanutbutter
env PATH=/usr/local/bin
env PATH=TEST_PATH

export PATH

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/upstart-single/upstart-single-test-log.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env bind=0.0.0.0
env mysql_host=localhost
env mysql_user=toast
env mysql_pass=peanutbutter
env PATH=/usr/local/bin
env PATH=TEST_PATH

export PATH

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/upstart-single/upstart-single-test-web.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env bind=0.0.0.0
env mysql_host=localhost
env mysql_user=toast
env mysql_pass=peanutbutter
env PATH=/usr/local/bin
env PATH=TEST_PATH

export PATH

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/upstart/upstart-test-api-1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env bind=0.0.0.0
env mysql_host=localhost
env mysql_user=toast
env mysql_pass=peanutbutter
env PATH=/usr/local/bin
env PATH=TEST_PATH
env PORT=5100

export PATH
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/upstart/upstart-test-log-1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env bind=0.0.0.0
env mysql_host=localhost
env mysql_user=toast
env mysql_pass=peanutbutter
env PATH=/usr/local/bin
env PATH=TEST_PATH
env PORT=5200

export PATH
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/upstart/upstart-test-web-1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env bind=0.0.0.0
env mysql_host=localhost
env mysql_user=toast
env mysql_pass=peanutbutter
env PATH=/usr/local/bin
env PATH=TEST_PATH
env PORT=5000

export PATH
Expand Down

0 comments on commit 18a089b

Please sign in to comment.