annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34246
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 #!/usr/bin/env sh
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 pushd /etc/apt/preferences.d/
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 cat > nosnap.pref <<EOF
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 # To prevent repository packages from triggering the installation of snap,
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5 # this file forbids snapd from being installed by APT.
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 Package: snapd
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 Pin: release a=*
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 Pin-Priority: -10
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 EOF
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11 popd
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 snap remove --purge $(snap list | awk '!/^Name|^core/ {print $1}')
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 apt-get purge -y snapd