Error if password can't be encrypted
This commit is contained in:
parent
2a5038d209
commit
0dffadd4d1
|
@ -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}:"
|
||||||
|
|
Loading…
Reference in New Issue