Error if password can't be encrypted

This commit is contained in:
Bob Mottram 2017-06-23 11:30:48 +01:00
parent 2a5038d209
commit 0dffadd4d1
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,10 @@ function run_tests {
exit 78352 exit 78352
fi fi
${PROJECT_NAME}-pass -u root -a tests -p "$pass" ${PROJECT_NAME}-pass -u root -a tests -p "$pass"
if [ ! "$?" = "0" ]; then
echo $'Unable to encrypt password'
exit 72725
fi
returned_pass=$(${PROJECT_NAME}-pass -u root -a tests) returned_pass=$(${PROJECT_NAME}-pass -u root -a tests)
if [[ "$pass" != "$returned_pass" ]]; then if [[ "$pass" != "$returned_pass" ]]; then
echo "pass :${pass}:" echo "pass :${pass}:"