[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/32] runtest: pass *all* the given shell options to the test in
From: |
Stefano Lattarini |
Subject: |
[PATCH 03/32] runtest: pass *all* the given shell options to the test invocation |
Date: |
Thu, 26 Jul 2012 14:04:29 +0200 |
* runtest.in: Here. This didn't work previously because, in our
option parsing loop, we were mistakenly redefining '$shell_opts'
each time, instead of appending to it.
Signed-off-by: Stefano Lattarini <address@hidden>
---
runtest.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/runtest.in b/runtest.in
index 64ad0d7..0722141 100644
--- a/runtest.in
+++ b/runtest.in
@@ -44,12 +44,12 @@ while test $# -gt 0; do
;;
-o)
test $# -gt 1 || error "missing argument for option '$1'"
- shell_opts="-o $2"
+ shell_opts="$shell_opts -o $2"
shift
;;
-*)
# Assume it is an option to pass through to the shell.
- shell_opts=$1;;
+ shell_opts="$shell_opts $1";;
*)
break;;
esac
--
1.7.12.rc0
- [PATCH 00/32] {maint} Several testsuite refactorings, Stefano Lattarini, 2012/07/26
- [PATCH 01/32] cosmetics: remove leftover comment fragment from runtest.in, Stefano Lattarini, 2012/07/26
- [PATCH 05/32] build: auxiliary testsuite files/scripts built by "make all", Stefano Lattarini, 2012/07/26
- [PATCH 03/32] runtest: pass *all* the given shell options to the test invocation,
Stefano Lattarini <=
- [PATCH 07/32] gen-tests: $testdir/ax -> $testauxdir, Stefano Lattarini, 2012/07/26
- [PATCH 02/32] runtest: correctly pass shell option also for TAP tests, Stefano Lattarini, 2012/07/26
- [PATCH 04/32] perf tests: reorganize, Stefano Lattarini, 2012/07/26
- [PATCH 09/32] tests: update PATH early from AM_TESTS_ENVIRONMENT and runtest, Stefano Lattarini, 2012/07/26
- [PATCH 06/32] gen-tests: less hard-coding of 't' as the test directory, Stefano Lattarini, 2012/07/26
- [PATCH 10/32] test defs: move in 't/ax/test-defs.sh', Stefano Lattarini, 2012/07/26
- [PATCH 08/32] runtest: export $srcdir for use by the test scripts, Stefano Lattarini, 2012/07/26
- [PATCH 12/32] test init: remove a couple of paranoid sanity checks, Stefano Lattarini, 2012/07/26
- [PATCH 15/32] test init: refactor: new function 'am_exit_trap', Stefano Lattarini, 2012/07/26