From f1a97ecbbeee727ec959648454b1abf6c48a57a6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Dalleau?=
 <frederic.dalleau@collabora.com>
Date: Tue, 29 Jan 2019 17:05:44 +0000
Subject: [PATCH] Fix apparmor-bluez-setup test case preconditions
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The preconditions mentionned to download another test.
Actually this is because this test uses bluez-setup so we add the steps for
bluez-setup in generated form.

Signed-off-by: Frédéric Dalleau <frederic.dalleau@collabora.com>
---
 test-cases/apparmor-bluez-setup.yaml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/test-cases/apparmor-bluez-setup.yaml b/test-cases/apparmor-bluez-setup.yaml
index 703162ed..e049c2c3 100644
--- a/test-cases/apparmor-bluez-setup.yaml
+++ b/test-cases/apparmor-bluez-setup.yaml
@@ -19,8 +19,13 @@ metadata:
     - "A Bluetooth adapter."
     - "A Bluetooth device."
 
-  macro_ostree_preconditions: bluez-setup
+  macro_ostree_preconditions: apparmor-bluez-setup
   pre-conditions:
+    - "Additionnally, it is necessary to get a copy of bluez-setup test:"
+    - $ cd $HOME
+    - $ wget https://gitlab.apertis.org/tests/bluez-setup/-/archive/master/bluez-setup-master.tar.gz
+    - $ tar -xvf bluez-setup-master.tar.gz
+    - $ scp -r bluez-setup-master user@$DUT_IP:.
     - "Please note that connman disables bluetooth by default on a fresh image.
        If it's already enabled, connmanctl will give an \"In progress\" error that
        may be ignored. To enable the device:"
-- 
GitLab