#!/bin/sh

set -e
exec 2>&1

# Ubuntu provides internet access via a proxy, but libostree doesn't need
# that. However, libostree also doesn't support no_proxy, so it will try
# to use Ubuntu's proxy for localhost, and fail to reach itself.
unset ftp_proxy
unset http_proxy
unset https_proxy
unset no_proxy

e=0

tests="$(gnome-desktop-testing-runner -l libostree | while read t; do
	t="${t%% *}"

	case "$t" in
		(libostree/test-concurrency.py.test)
			# https://bugs.debian.org/901170
			# https://github.com/ostreedev/ostree/issues/1620
			continue
			;;
	esac

	echo "$t"
done)"

exec gnome-desktop-testing-runner $tests
