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:
parent
2d0e10144f
commit
c505a14be5
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user