File: installed-tests-flaky

package info (click to toggle)
mutter 49.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,732 kB
  • sloc: ansic: 397,916; xml: 3,384; python: 3,270; sh: 389; ruby: 167; makefile: 61; javascript: 26
file content (31 lines) | stat: -rwxr-xr-x 616 bytes parent folder | download
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
#!/bin/sh

set -eu

namespace="mutter-17/stacking mutter-17/thread.test"

if [ -z "${HOME-}" ] || ! [ -w "${HOME}" ]; then
    export HOME="${AUTOPKGTEST_TMP}"
fi

cd "$AUTOPKGTEST_TMP"

# Intentionally word-splitting $namespace:
# shellcheck disable=SC2086
tests="$(ginsttest-runner -l $namespace)"

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

# copied from .gitlab-ci.yml
# needed by xwayland
mkdir -p -m 1777 /tmp/.X11-unix

e=0
# shellcheck disable=SC2086
ginsttest-runner \
    --log-directory "$AUTOPKGTEST_ARTIFACTS" \
    --tap \
    $namespace