3
# Copyright 2015-2016 Canonical
5
# This program is free software: you can redistribute it and/or modify it
6
# under the terms of the GNU General Public License version 3, as published
7
# by the Free Software Foundation.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
17
# This runs the $1 autopilot suite ensuring that the testbed is configured
24
if ! pgrep -f unity-system-compositor ; then
25
# We're not using Mir, setup enough of an X stack
27
# FIXME: We won't need an X stack once Mir provides mirvfb or any other
28
# mean to test consistently on all platforms -- vila 2015-04-22
29
sudo -A ADT_NORMAL_USER=${USER} sh -e /usr/share/autopkgtest/setup-commands/ubuntu-touch-session
30
# Import the environment produced above in the current shell
33
elif pgrep -f unity8 ; then
34
# Work around https://launchpad.net/bugs/1574706
35
initctl --session restart unity8
37
gdbus call --session --dest com.canonical.UnityGreeter --object-path / --method com.canonical.UnityGreeter.HideGreeter
40
autopilot3 run --verbose --format xml --output "${ADT_ARTIFACTS}/${SUITE}.xml" ${SUITE}