implement run on a single file
This commit is contained in:
parent
e7d5a35409
commit
fb2a8e72e6
12
urchin
12
urchin
@ -89,8 +89,7 @@ recurse() {
|
|||||||
then
|
then
|
||||||
TEST_SHELL="$TEST_SHELL" "$shell_for_sh_tests" ./"$potential_test" > "$stdout_file" 2>&1
|
TEST_SHELL="$TEST_SHELL" "$shell_for_sh_tests" ./"$potential_test" > "$stdout_file" 2>&1
|
||||||
else
|
else
|
||||||
dotslash=$(echo "$potential_test" | grep '^/' > /dev/null || echo ./)
|
TEST_SHELL="$TEST_SHELL" ./"$potential_test" > "$stdout_file" 2>&1
|
||||||
TEST_SHELL="$TEST_SHELL" $dotslash"$potential_test" > "$stdout_file" 2>&1
|
|
||||||
fi
|
fi
|
||||||
exit_code="$?"
|
exit_code="$?"
|
||||||
|
|
||||||
@ -296,15 +295,14 @@ done
|
|||||||
thetest=$(readlink -f "$1")
|
thetest=$(readlink -f "$1")
|
||||||
if echo "$thetest" | grep -Fi 'test' > /dev/null || $force; then
|
if echo "$thetest" | grep -Fi 'test' > /dev/null || $force; then
|
||||||
if test -d "$1"; then
|
if test -d "$1"; then
|
||||||
logfile="$thetest/.urchin.log"
|
d="$thetest"
|
||||||
stdout_file="$thetest/.urchin_stdout"
|
|
||||||
else
|
else
|
||||||
d=$(echo "$thetest" | sed 's/\/[^\/]\{1,\}$//')
|
d=$(echo "$thetest" | sed 's/\/[^\/]\{1,\}$//')
|
||||||
logfile="$d/.urchin.log"
|
|
||||||
stdout_file="$d/.urchin_stdout"
|
|
||||||
cd "$d"
|
cd "$d"
|
||||||
fi
|
fi
|
||||||
urchin_go "$thetest" "$shell_for_sh_tests"
|
logfile="$d/.urchin.log"
|
||||||
|
stdout_file="$d/.urchin_stdout"
|
||||||
|
urchin_go "$1" "$shell_for_sh_tests"
|
||||||
else
|
else
|
||||||
urchin_molly_guard
|
urchin_molly_guard
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user