mirror of
https://github.com/containers/podman.git
synced 2025-06-10 17:48:29 +08:00
Merge pull request #4028 from cevich/add_bash_completion_support
cirrus: Add bash-completion support
This commit is contained in:
@ -30,7 +30,7 @@ env:
|
|||||||
####
|
####
|
||||||
#### Cache-image names to test with (double-quotes around names are critical)
|
#### Cache-image names to test with (double-quotes around names are critical)
|
||||||
###
|
###
|
||||||
_BUILT_IMAGE_SUFFIX: "libpod-5664838702858240"
|
_BUILT_IMAGE_SUFFIX: "libpod-5816955207942144"
|
||||||
FEDORA_CACHE_IMAGE_NAME: "fedora-30-${_BUILT_IMAGE_SUFFIX}"
|
FEDORA_CACHE_IMAGE_NAME: "fedora-30-${_BUILT_IMAGE_SUFFIX}"
|
||||||
PRIOR_FEDORA_CACHE_IMAGE_NAME: "fedora-29-${_BUILT_IMAGE_SUFFIX}"
|
PRIOR_FEDORA_CACHE_IMAGE_NAME: "fedora-29-${_BUILT_IMAGE_SUFFIX}"
|
||||||
SPECIAL_FEDORA_CACHE_IMAGE_NAME: "xfedora-30-${_BUILT_IMAGE_SUFFIX}"
|
SPECIAL_FEDORA_CACHE_IMAGE_NAME: "xfedora-30-${_BUILT_IMAGE_SUFFIX}"
|
||||||
@ -637,9 +637,7 @@ verify_test_built_images_task:
|
|||||||
integration_test_script: >-
|
integration_test_script: >-
|
||||||
[[ "$PACKER_BUILDER_NAME" == "xfedora-30" ]] || \
|
[[ "$PACKER_BUILDER_NAME" == "xfedora-30" ]] || \
|
||||||
$SCRIPT_BASE/integration_test.sh |& ${TIMESTAMP}
|
$SCRIPT_BASE/integration_test.sh |& ${TIMESTAMP}
|
||||||
build_release_script: >-
|
build_release_script: '$SCRIPT_BASE/build_release.sh |& ${TIMESTAMP}'
|
||||||
[[ "$PACKER_BUILDER_NAME" == "xfedora-30" ]] || \
|
|
||||||
$SCRIPT_BASE/build_release.sh |& ${TIMESTAMP}
|
|
||||||
system_test_script: >-
|
system_test_script: >-
|
||||||
[[ "$PACKER_BUILDER_NAME" == "xfedora-30" ]] || \
|
[[ "$PACKER_BUILDER_NAME" == "xfedora-30" ]] || \
|
||||||
$SCRIPT_BASE/system_test.sh |& ${TIMESTAMP}
|
$SCRIPT_BASE/system_test.sh |& ${TIMESTAMP}
|
||||||
|
@ -56,6 +56,11 @@ then
|
|||||||
item_test "On ubuntu /usr/bin/runc is /usr/lib/cri-o-runc/sbin/runc" "$SAMESAME" -eq "0" || let "NFAILS+=1"
|
item_test "On ubuntu /usr/bin/runc is /usr/lib/cri-o-runc/sbin/runc" "$SAMESAME" -eq "0" || let "NFAILS+=1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$OS_RELEASE_ID" == "ubuntu" ]]
|
||||||
|
then
|
||||||
|
item_test "On ubuntu, no periodic apt crap is enabled" -z "$(egrep $PERIODIC_APT_RE /etc/apt/apt.conf.d/*)"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Checking items specific to ${PACKER_BUILDER_NAME}${BUILT_IMAGE_SUFFIX}"
|
echo "Checking items specific to ${PACKER_BUILDER_NAME}${BUILT_IMAGE_SUFFIX}"
|
||||||
case "$PACKER_BUILDER_NAME" in
|
case "$PACKER_BUILDER_NAME" in
|
||||||
xfedora*)
|
xfedora*)
|
||||||
|
@ -73,6 +73,8 @@ UPLDREL_IMAGE="quay.io/libpod/upldrel:latest"
|
|||||||
export DEBIAN_FRONTEND="noninteractive"
|
export DEBIAN_FRONTEND="noninteractive"
|
||||||
SUDOAPTGET="ooe.sh sudo -E apt-get -qq --yes"
|
SUDOAPTGET="ooe.sh sudo -E apt-get -qq --yes"
|
||||||
SUDOAPTADD="ooe.sh sudo -E add-apt-repository --yes"
|
SUDOAPTADD="ooe.sh sudo -E add-apt-repository --yes"
|
||||||
|
# Regex that finds enabled periodic apt configuration items
|
||||||
|
PERIODIC_APT_RE='^(APT::Periodic::.+")1"\;'
|
||||||
# Short-cuts for retrying/timeout calls
|
# Short-cuts for retrying/timeout calls
|
||||||
LILTO="timeout_attempt_delay_command 24s 5 30s"
|
LILTO="timeout_attempt_delay_command 24s 5 30s"
|
||||||
BIGTO="timeout_attempt_delay_command 300s 5 30s"
|
BIGTO="timeout_attempt_delay_command 300s 5 30s"
|
||||||
|
@ -26,6 +26,7 @@ ooe.sh sudo dnf install -y \
|
|||||||
atomic-registries \
|
atomic-registries \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
|
bash-completion \
|
||||||
bats \
|
bats \
|
||||||
bridge-utils \
|
bridge-utils \
|
||||||
btrfs-progs-devel \
|
btrfs-progs-devel \
|
||||||
|
@ -18,8 +18,16 @@ trap "sudo rm -rf $GOPATH" EXIT
|
|||||||
# Ensure there are no disruptive periodic services enabled by default in image
|
# Ensure there are no disruptive periodic services enabled by default in image
|
||||||
systemd_banish
|
systemd_banish
|
||||||
|
|
||||||
|
# Stop disruption upon boot ASAP after booting
|
||||||
|
echo "Disabling all packaging activity on boot"
|
||||||
|
# Don't let sed process sed's temporary files
|
||||||
|
_FILEPATHS=$(sudo ls -1 /etc/apt/apt.conf.d)
|
||||||
|
for filename in $_FILEPATHS; do \
|
||||||
|
echo "Checking/Patching $filename"
|
||||||
|
sudo sed -i -r -e "s/$PERIODIC_APT_RE/"'\10"\;/' "/etc/apt/apt.conf.d/$filename"; done
|
||||||
|
|
||||||
echo "Updating/configuring package repositories."
|
echo "Updating/configuring package repositories."
|
||||||
$LILTO $SUDOAPTGET update
|
$BIGTO $SUDOAPTGET update
|
||||||
|
|
||||||
echo "Upgrading all packages"
|
echo "Upgrading all packages"
|
||||||
$BIGTO $SUDOAPTGET upgrade
|
$BIGTO $SUDOAPTGET upgrade
|
||||||
@ -41,6 +49,7 @@ $BIGTO $SUDOAPTGET install \
|
|||||||
aufs-tools \
|
aufs-tools \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
|
bash-completion \
|
||||||
bats \
|
bats \
|
||||||
bison \
|
bison \
|
||||||
btrfs-tools \
|
btrfs-tools \
|
||||||
|
Reference in New Issue
Block a user