diff --git a/tests/p_cracklib/cracklib_passwordtest.sh b/tests/p_cracklib/cracklib_passwordtest.sh index fb631bf..c3bd801 100755 --- a/tests/p_cracklib/cracklib_passwordtest.sh +++ b/tests/p_cracklib/cracklib_passwordtest.sh @@ -12,9 +12,14 @@ t_Log "checking simple password" echo -e "testing" | cracklib-check | grep -q 'dictionary' t_CheckExitStatus $? -t_Log "checking simplistic password" -echo -e "1234_Hgi" | cracklib-check | grep -q 'simplistic' -t_CheckExitStatus $? +if (t_GetPkgRel basesystem | grep -q el5) +then + t_Log "Simplistic password not checked on C5" +else + t_Log "checking simplistic password" + echo -e "1234_Hgi" | cracklib-check | grep -q 'simplistic' + t_CheckExitStatus $? +fi t_Log "checking complicated password" echo -e "1536_Hargi" | cracklib-check | grep -q 'OK'