#!/bin/sh
set -e
unset TMPDIR

# gvfs test needs to load scsi_debug kernel module, up to Ubuntu Noble, this kernel module
# is part of the linux-modules-extra that might not be installed in some images (LXD VMs)
# this is the best effort to install it. We cannot specify linux-image-generic as
# test dependency in d/t/control because it can pull-in a package a for different version
# than the currently active kernel.
sudo apt install -y linux-modules-extra-$(uname -r) || :

exec sudo -n test/gvfs-testbed test/gvfs-test
