| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
exec 2>&1 |
| 5 |
|
| 6 |
# Ubuntu provides internet access via a proxy, but libostree doesn't need |
| 7 |
# that. However, libostree also doesn't support no_proxy, so it will try |
| 8 |
# to use Ubuntu's proxy for localhost, and fail to reach itself. |
| 9 |
unset ftp_proxy |
| 10 |
unset http_proxy |
| 11 |
unset https_proxy |
| 12 |
unset no_proxy |
| 13 |
|
| 14 |
namespace=libostree/ |
| 15 |
|
| 16 |
tests="$(gnome-desktop-testing-runner -l "$namespace" | while read -r t; do |
| 17 |
t="${t%% *}" |
| 18 |
|
| 19 |
case "$t" in |
| 20 |
(libostree/test-concurrency.py.test) |
| 21 |
# https://bugs.debian.org/901170 |
| 22 |
# https://github.com/ostreedev/ostree/issues/1620 |
| 23 |
continue |
| 24 |
;; |
| 25 |
|
| 26 |
(libostree/test-sysroot.js.test) |
| 27 |
# https://bugs.debian.org/1025532 |
| 28 |
# https://github.com/ostreedev/ostree/issues/2527 |
| 29 |
if [ "${DEB_HOST_ARCH-}" = s390x ] || [ "$(uname -m)" = s390x ]; then |
| 30 |
continue |
| 31 |
fi |
| 32 |
;; |
| 33 |
esac |
| 34 |
|
| 35 |
echo "$t" |
| 36 |
done)" |
| 37 |
|
| 38 |
if [ -z "$tests" ]; then |
| 39 |
echo "Error: no installed-tests found matching $namespace" >&2 |
| 40 |
exit 1 |
| 41 |
fi |
| 42 |
|
| 43 |
# Deliberately word-splitting |
| 44 |
# shellcheck disable=SC2046 |
| 45 |
exec gnome-desktop-testing-runner $tests |