From b4a35551966da7b1559692b1a7429a740c7310f1 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sun, 28 Feb 2016 12:23:13 +0000 Subject: [PATCH] absolute paths --- urchin | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/urchin b/urchin index c3abf70..27953a2 100755 --- a/urchin +++ b/urchin @@ -138,6 +138,7 @@ recurse() { > $stdout_file if [ -x "$potential_test" ]; then + cd -- "$(dirname "$potential_test")" urchin_source setup if [ -n "$shell_for_sh_tests" ] && @@ -152,9 +153,9 @@ recurse() { set +e if $cycle_shell; then TEST_SHELL="$TEST_SHELL" "$shell_for_sh_tests" \ - ./"$potential_test" > "$stdout_file" 2>&1 + "$potential_test" > "$stdout_file" 2>&1 else - TEST_SHELL="$TEST_SHELL" ./"$potential_test" > "$stdout_file" 2>&1 + TEST_SHELL="$TEST_SHELL" "$potential_test" > "$stdout_file" 2>&1 fi exit_code="$?" set -e