view ci/load-snd-dummy.sh @ 24164:2259c73cc1d9 v8.2.2623

patch 8.2.2623: some tests fail when run as root Commit: https://github.com/vim/vim/commit/17709e280ac5ba234b04641cde88d38e3522cedf Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 19 14:38:12 2021 +0100 patch 8.2.2623: some tests fail when run as root Problem: Some tests fail when run as root. Solution: Use CheckNotRoot.
author Bram Moolenaar <Bram@vim.org>
date Fri, 19 Mar 2021 14:45:04 +0100
parents 3a7017ee1161
children
line wrap: on
line source

#!/bin/bash
set -e

if ! modprobe snd-dummy; then
    # snd-dummy is contained in linux-modules-extra (if exists)
    apt-get install -yq --no-install-suggests --no-install-recommends "linux-modules-extra-$(uname -r)"
    modprobe snd-dummy
fi