summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/vfio/scripts/run.sh
blob: 91fd38f9f6f6a64dc50967ea45f788fbcff5235b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# SPDX-License-Identifier: GPL-2.0-or-later

source $(dirname -- "${BASH_SOURCE[0]}")/lib.sh

function main() {
	local device_bdfs=$(ls ${DEVICES_DIR})

	if [ -z "${device_bdfs}" ]; then
		echo "No devices found, skipping."
		exit 4
	fi

	"$@" ${device_bdfs}
}

main "$@"