From 0db2c83939645d8d0f43ddc19f1198f78a85cbf7 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Tue, 9 Jun 2020 19:08:06 +0100
Subject: [PATCH] testutils: Make sure the artifacts path is absolute

If we're passing it across a container boundary, relative paths are
going to get error-prone.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 tests/testutils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/testutils.py b/tests/testutils.py
index 7c0d9bf8c..6fe711e7b 100644
--- a/tests/testutils.py
+++ b/tests/testutils.py
@@ -100,7 +100,7 @@ class BaseTest(unittest.TestCase):
         artifacts = os.getenv('AUTOPKGTEST_ARTIFACTS')
 
         if artifacts is not None:
-            self.artifacts = artifacts
+            self.artifacts = os.path.abspath(artifacts)
         else:
             self.artifacts = self.tmpdir.name
 
-- 
GitLab