source "${OET_PATH}/libs/locallibs/common_lib.sh"
function pre_test() {
LOG_INFO "Start environmental preparation."
DNF_INSTALL "python-stestr"
LOG_INFO "End of environmental preparation!"
}
function run_test() {
LOG_INFO "Start to run test."
stestr-3 last
CHECK_RESULT $? 0 0 "stestr last command failed"
stestr-3 last --subunit
CHECK_RESULT $? 0 0 "stestr last --subunit command failed"
stestr-3 last --no-subunit-trace
CHECK_RESULT $? 0 0 "stestr last --no-subunit-trace command failed"
stestr-3 last --force-subunit-trace
CHECK_RESULT $? 0 0 "stestr last --force-subunit-trace command failed"
stestr-3 last --color
CHECK_RESULT $? 0 0 "stestr last --color command failed"
stestr-3 last --suppress-attachments
CHECK_RESULT $? 0 0 "stestr last --suppress-attachments command failed"
stestr-3 last --all-attachments
CHECK_RESULT $? 0 0 "stestr last --all-attachments command failed"
stestr-3 last --show-binary-attachments
CHECK_RESULT $? 0 0 "stestr last --show-binary-attachments command failed"
LOG_INFO "End of the test."
}
function post_test() {
LOG_INFO "start environment cleanup."
DNF_REMOVE "python-stestr"
LOG_INFO "End of environment cleanup!"
}
main "$@"