Blame SOURCES/0001-Set-top-level-directory-for-unittest.patch

bc72d2
From 423c987b6b14ec0a6277181ac7c038b50033296d Mon Sep 17 00:00:00 2001
6cc3d3
From: Pavla Kratochvilova <pkratoch@redhat.com>
6cc3d3
Date: Wed, 19 May 2021 12:58:30 +0200
6cc3d3
Subject: [PATCH] Set top-level directory for unittest
6cc3d3
6cc3d3
In some build environments, the top-level directory is not added to
6cc3d3
the sys.path and the tests fail. This fixes the issue.
6cc3d3
---
6cc3d3
 tests/CMakeLists.txt | 2 +-
6cc3d3
 1 file changed, 1 insertion(+), 1 deletion(-)
6cc3d3
6cc3d3
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
bc72d2
index b15cc62b..dedc46fd 100644
6cc3d3
--- a/tests/CMakeLists.txt
6cc3d3
+++ b/tests/CMakeLists.txt
6cc3d3
@@ -1,6 +1,6 @@
6cc3d3
 ADD_TEST(
6cc3d3
     NAME test
6cc3d3
-    COMMAND ${PYTHON_EXECUTABLE} -m unittest discover -s tests
6cc3d3
+    COMMAND ${PYTHON_EXECUTABLE} -m unittest discover -s tests -t ${PROJECT_SOURCE_DIR}
6cc3d3
     WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
6cc3d3
 
6cc3d3
 # For libdnf built with sanitizers, has no effect otherwise.
bc72d2
-- 
bc72d2
2.35.1
6cc3d3