Re: [PATCH v2 2/3] Introduce a performance testing framework
- From
Jeff King <peff@peff.net>
- Date
- Feb 17, 2012, 07:45 UTC
- Message-ID
- <20120217074543.GA25213@sigill.intra.peff.net>
- In-Reply-To
- <5e712370fcfe32832998c085fdf6b5a7c4e7d64b.1329428159.git.trast@student.ethz.ch>
On Thu, Feb 16, 2012 at 10:41:14PM +0100, Thomas Rast wrote:
Show 5 quoted lines
> + if test $eval_ret = 0 || test -n "$expecting_failure" > + then > + test_eval_ "$test_cleanup" > + source ./test_vars || error "failed to load updated environment" > + fi
"source" is a bash-ism (actually, it is a csh-ism as far as I know, but perhaps it predates even that). The correct POSIX spelling is ".".
After tweaking this line, the suite seems to run fine for me with dash as /bin/sh. Patch is below for your convenience.
-Peff
---
diff --git a/t/perf/perf-lib.sh b/t/perf/perf-lib.sh index 07e9b09..629d7d5 100644 --- a/t/perf/perf-lib.sh +++ b/t/perf/perf-lib.sh @@ -135,7 +135,7 @@ exit $ret' >&3 2>&4 if test $eval_ret = 0 || test -n "$expecting_failure" then test_eval_ "$test_cleanup" - source ./test_vars || error "failed to load updated environment" + . ./test_vars || error "failed to load updated environment" fi if test "$verbose" = "t" && test -n "$HARNESS_ACTIVE"; then echo ""