#!/bin/bash
# autopkgtest check: Run the installed-tests to verify gnome-photos works correctly
# (C) 2013 Canonical Ltd.
# Author: Iain Lane <iain.lane@canonical.com>

set -e

# See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986665
export HOME=$AUTOPKGTEST_TMP
export XDG_RUNTIME_DIR=$AUTOPKGTEST_TMP

xvfb-run -a dbus-run-session -- gnome-desktop-testing-runner gnome-photos 2> >(grep -vE '^(Activating|Successfully activated)')>&2
