4b110147f6
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/shadow-utils#9f643a301165a0b1bb1fcb7b9c425809d5791a2f
25 lines
406 B
Bash
Executable File
25 lines
406 B
Bash
Executable File
#!/bin/bash
|
|
. /usr/bin/rhts-environment.sh
|
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
|
|
|
rlJournalStart
|
|
rlFileBackup --clean /etc/default/useradd- /etc/default/useradd
|
|
setenforce 0
|
|
python sanity_test.py -v
|
|
setenforce 1
|
|
rlFileRestore
|
|
|
|
EXIT=$?
|
|
if [[ $EXIT -eq 0 ]]; then
|
|
RESULT="PASS"
|
|
else
|
|
RESULT="FAIL"
|
|
fi
|
|
|
|
|
|
rlJournalEnd
|
|
|
|
echo "Result: $RESULT"
|
|
echo "Exit: $EXIT"
|
|
report_result $TEST $RESULT $EXIT
|