From f21ce757438dd2771932694c45dd37dbbc4d0de3 Mon Sep 17 00:00:00 2001
From: Simon Praetorius <simon.praetorius@tu-dresden.de>
Date: Sun, 24 Jan 2021 17:11:30 +0100
Subject: [PATCH] Fix cmake error with dune_add_python_test

---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1a7f1ba..89edafe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,11 +26,11 @@ set(DUNE_TESTTOOLS_PATH ${PROJECT_SOURCE_DIR})
 dune_python_install_package(PATH python)
 
 dune_python_add_test(NAME pytest
-                     COMMAND ${DUNE_PYTHON_VIRTUALENV_EXECUTABLE} -m pytest
+                     SCRIPT pytest
                      WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/python
                      )
 dune_python_add_test(NAME pep8
-                     COMMAND ${DUNE_PYTHON_VIRTUALENV_EXECUTABLE} -m pytest --pep8
+                     SCRIPT pytest --pep8
                      WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/python
                      )
 
-- 
GitLab