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 <ecrist@secure-computing.net>
This commit is contained in:
Eric F Crist 2020-04-14 22:07:14 -05:00
parent 2d0e10144f
commit c505a14be5
No known key found for this signature in database
GPG Key ID: 72964219390D0D0E

View File

@ -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