#!/bin/sh -e
exec 2>&1
# try loading the mtdram module to run our mtd tests
modprobe mtdram 2>&1 || true
fwupdtool enable-test-devices
fwupdtool modify-config VerboseDomains "*"
sed "s,ConditionVirtualization=.*,," 		\
	/lib/systemd/system/fwupd.service >	\
	/etc/systemd/system/fwupd.service
systemctl daemon-reload
# run the tests
gnome-desktop-testing-runner fwupd
