test-lib-main.sh: keep same exit code with --tee
commit75e13ee23543fbd301db2655693aabeb53d78a6b
authorKyle J. McKay <mackyle@gmail.com>
Sat, 11 Feb 2017 21:19:49 +0000 (11 13:19 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 11 Feb 2017 21:19:49 +0000 (11 13:19 -0800)
treeab66994ff89a688b9af6583b36c08a72ce0c189c
parent40506cbea4c655a229ac06f6d61fac7a5df2771a
test-lib-main.sh: keep same exit code with --tee

Use of --tee (or --verbose-log) causes the test to be re-spawned
to capature output (both stdout and stderr) into a file.  Make sure
that the same exit code is propagated up rather than stepping on
it so that the same result occurs whether or not --tee is used.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
t/test-lib-main.sh