From c505a14be5e62c0a0a97b1548fb945283076c678 Mon Sep 17 00:00:00 2001 From: Eric F Crist Date: Tue, 14 Apr 2020 22:07:14 -0500 Subject: [PATCH] op_test.sh will now exit with status of unit tests Fixed an issue where op_test.sh would exit with the status of the rm command from cleanup, rather than from the unit tests it was running. Closes #355 Signed-off-by: Eric F Crist --- op_test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/op_test.sh b/op_test.sh index b71cf59..f9d6be9 100755 --- a/op_test.sh +++ b/op_test.sh @@ -9,6 +9,9 @@ curl -O 'https://raw.githubusercontent.com/OpenVPN/easyrsa-unit-tests/master/eas if [ -e "easyrsa-unit-tests.sh" ]; then sh easyrsa-unit-tests.sh -v + estat=$? fi -rm easyrsa-unit-tests.sh +rm -f easyrsa-unit-tests.sh + +exit $estat