File: gnome-desktop-testing

package info (click to toggle)
ostree 2025.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,996 kB
  • sloc: ansic: 70,831; sh: 15,652; xml: 5,007; yacc: 1,236; javascript: 531; makefile: 247; python: 155
file content (45 lines) | stat: -rwxr-xr-x 1,031 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/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

namespace=libostree/

tests="$(gnome-desktop-testing-runner -l "$namespace" | while read -r 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
			;;

		(libostree/test-sysroot.js.test)
			# https://bugs.debian.org/1025532
			# https://github.com/ostreedev/ostree/issues/2527
			if [ "${DEB_HOST_ARCH-}" = s390x ] || [ "$(uname -m)" = s390x ]; then
				continue
			fi
			;;
	esac

	echo "$t"
done)"

if [ -z "$tests" ]; then
	echo "Error: no installed-tests found matching $namespace" >&2
	exit 1
fi

# Deliberately word-splitting
# shellcheck disable=SC2046
exec gnome-desktop-testing-runner $tests