view ci/remove_snap.sh @ 35577:476fa7a98a7e v9.1.0541

patch 9.1.0541: failing test with Vim configured without channel Commit: https://github.com/vim/vim/commit/52123879c0c64c64ca6071192a9f8eacd822efd1 Author: Dominique Pell? <dominique.pelle@gmail.com> Date: Sun Jul 7 20:37:12 2024 +0200 patch 9.1.0541: failing test with Vim configured without channel Problem: failing test with Vim configured without channel Solution: In the test Test_null_values() verify that the 'channel' and 'job' feature is present in Vim. (Dominique Pell?) Test `Test_null_values` was failing when vim is configured without channel because the test uses function `null_channel()` (which requires the `+channel` feature) and using `null_job()` which requires the `+job` feature. But was reproducible when vim is configured with: ``` ./configure --with-features=huge --enable-gui=none --disable-channel ``` Only check `null_channel()` when the `+channel` feature is available. Only check `null_job()` when the `+job` feature is available. closes: #15177 Signed-off-by: Dominique Pell? <dominique.pelle@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 07 Jul 2024 20:45:06 +0200
parents 752da4c70ab4
children
line wrap: on
line source

#!/usr/bin/env sh
pushd /etc/apt/preferences.d/
cat > nosnap.pref <<EOF
# To prevent repository packages from triggering the installation of snap,
# this file forbids snapd from being installed by APT.

Package: snapd
Pin: release a=*
Pin-Priority: -10
EOF
popd
snap remove --purge $(snap list | awk '!/^Name|^core/ {print $1}')
apt-get purge -y snapd