mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
3889d8654a
By default pytest reports in summary section about tests failures and errors. It will be helpful to see skipped, xfailed and xpassed tests. Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
32 lines
785 B
Bash
Executable File
32 lines
785 B
Bash
Executable File
#!/bin/bash -eux
|
|
|
|
# this script is intended to be run within container
|
|
#
|
|
# distro-specifics
|
|
source "${IPA_TESTS_SCRIPTS}/variables.sh"
|
|
|
|
rm -rf "$IPA_TESTS_LOGSDIR"
|
|
mkdir "$IPA_TESTS_LOGSDIR"
|
|
pushd "$IPA_TESTS_LOGSDIR"
|
|
|
|
tests_result=1
|
|
{ IPATEST_YAML_CONFIG=~/.ipa/ipa-test-config.yaml \
|
|
ipa-run-tests \
|
|
--logging-level=debug \
|
|
--logfile-dir="$IPA_TESTS_LOGSDIR" \
|
|
--with-xunit \
|
|
--verbose \
|
|
-ra \
|
|
$IPA_TESTS_ARGS \
|
|
$IPA_TESTS_TO_IGNORE \
|
|
$IPA_TESTS_TO_RUN && tests_result=0 ; } || \
|
|
tests_result=$?
|
|
|
|
# fix permissions on logs to be readable by Azure's user (vsts)
|
|
chmod -R o+rX "$IPA_TESTS_LOGSDIR"
|
|
|
|
find "$IPA_TESTS_LOGSDIR" -mindepth 1 -maxdepth 1 -not -name '.*' -type d \
|
|
-exec tar --remove-files -czf {}.tar.gz {} \;
|
|
|
|
exit $tests_result
|