mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
Cirrus: Make use of shared get_ci_vm container
Depends on:
https://github.com/containers/automation_images/pull/57
https://github.com/containers/automation/pull/64
https://github.com/containers/automation/pull/66
https://github.com/containers/automation/pull/67
https://github.com/containers/automation/pull/68
Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
@ -13,8 +13,12 @@ set -a
|
||||
_waserrexit=0
|
||||
if [[ "$SHELLOPTS" =~ errexit ]]; then _waserrexit=1; fi
|
||||
set +e # Assumed in F33 for setting global vars
|
||||
source /etc/profile
|
||||
source /etc/environment
|
||||
if [[ -r "/etc/automation_environment" ]]; then
|
||||
source /etc/automation_environment
|
||||
else # prior to automation library v2.0, this was necessary
|
||||
source /etc/profile
|
||||
source /etc/environment
|
||||
fi
|
||||
if [[ -r "/etc/ci_environment" ]]; then source /etc/ci_environment; fi
|
||||
USER="$(whoami)"
|
||||
HOME="$(getent passwd $USER | cut -d : -f 6)"
|
||||
|
||||
@ -269,13 +269,18 @@ function _run_release() {
|
||||
}
|
||||
|
||||
logformatter() {
|
||||
# Use similar format as human-friendly task name from .cirrus.yml
|
||||
# shellcheck disable=SC2154
|
||||
output_name="$TEST_FLAVOR-$PODBIN_NAME-$DISTRO_NV-$PRIV_NAME-$TEST_ENVIRON"
|
||||
# Requires stdin and stderr combined!
|
||||
cat - \
|
||||
|& awk --file "${CIRRUS_WORKING_DIR}/${SCRIPT_BASE}/timestamp.awk" \
|
||||
|& "${CIRRUS_WORKING_DIR}/${SCRIPT_BASE}/logformatter" "$output_name"
|
||||
if [[ "$CI" == "true" ]]; then
|
||||
# Use similar format as human-friendly task name from .cirrus.yml
|
||||
# shellcheck disable=SC2154
|
||||
output_name="$TEST_FLAVOR-$PODBIN_NAME-$DISTRO_NV-$PRIV_NAME-$TEST_ENVIRON"
|
||||
# Requires stdin and stderr combined!
|
||||
cat - \
|
||||
|& awk --file "${CIRRUS_WORKING_DIR}/${SCRIPT_BASE}/timestamp.awk" \
|
||||
|& "${CIRRUS_WORKING_DIR}/${SCRIPT_BASE}/logformatter" "$output_name"
|
||||
else
|
||||
# Assume script is run by a human, they want output immediatly
|
||||
cat -
|
||||
fi
|
||||
}
|
||||
|
||||
# Handle local|remote integration|system testing in a uniform way
|
||||
|
||||
Reference in New Issue
Block a user