Loading test/stubs/stub +1 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ set -e status=0 program="${0##*/}" PROGRAM="$(echo "$program" | tr a-z A-Z)" PROGRAM="$(echo "$program" | tr a-z- A-Z_)" [ -n "$TMPDIR" ] || TMPDIR="/tmp" _STUB_PLAN="${PROGRAM}_STUB_PLAN" Loading test/test_helper.bash +2 −2 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ teardown() { stub() { local program="$1" local prefix="$(echo "$program" | tr a-z A-Z)" local prefix="$(echo "$program" | tr a-z- A-Z_)" shift export "${prefix}_STUB_PLAN"="${TMP}/${program}-stub-plan" Loading @@ -31,7 +31,7 @@ stub() { unstub() { local program="$1" local prefix="$(echo "$program" | tr a-z A-Z)" local prefix="$(echo "$program" | tr a-z- A-Z_)" local path="${TMP}/bin/${program}" export "${prefix}_STUB_END"=1 Loading Loading
test/stubs/stub +1 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ set -e status=0 program="${0##*/}" PROGRAM="$(echo "$program" | tr a-z A-Z)" PROGRAM="$(echo "$program" | tr a-z- A-Z_)" [ -n "$TMPDIR" ] || TMPDIR="/tmp" _STUB_PLAN="${PROGRAM}_STUB_PLAN" Loading
test/test_helper.bash +2 −2 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ teardown() { stub() { local program="$1" local prefix="$(echo "$program" | tr a-z A-Z)" local prefix="$(echo "$program" | tr a-z- A-Z_)" shift export "${prefix}_STUB_PLAN"="${TMP}/${program}-stub-plan" Loading @@ -31,7 +31,7 @@ stub() { unstub() { local program="$1" local prefix="$(echo "$program" | tr a-z A-Z)" local prefix="$(echo "$program" | tr a-z- A-Z_)" local path="${TMP}/bin/${program}" export "${prefix}_STUB_END"=1 Loading