From 769f601b71d2365a13eac17ff4cf341c8e8689c4 Mon Sep 17 00:00:00 2001
From: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date: Tue, 19 Jul 2016 15:32:38 +0100
Subject: [PATCH] libreoffice: ensure that ~/Documents exists

Real Apertis images have ~/Documents already, but the Documents
directory isn't created when the filesystem image is picked apart
and reassembled by LAVA. This causes `mktemp`, and hence the
apparmor-libreoffice test, to fail on LAVA.

Relevant to T2104, but does not close it.

Reviewed-by: Luis Araujo <luis.araujo@collabora.co.uk>
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D3765
---
 libreoffice/automated/run-test.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libreoffice/automated/run-test.sh b/libreoffice/automated/run-test.sh
index 507b496..ade3433 100755
--- a/libreoffice/automated/run-test.sh
+++ b/libreoffice/automated/run-test.sh
@@ -18,6 +18,7 @@ check_not_root
 
 # Chosen to be something that the AppArmor profile for LibreOffice
 # should normally allow
+mkdir -p ~/Documents
 docsdir="$(mktemp -d ~/Documents/apertis-tests-libreoffice.XXXXXX)"
 cp -a "${MEDIA_RESOURCE_DIR}/documents/"*.od[pst] "${docsdir}/"
 
-- 
GitLab