diff --git a/tests/run_tests.py b/tests/run_tests.py
index 096a5ef15324192eeb93b2e764e97d78564d5ccd..36685f5c8e5516fcd708c7e818deb0bc9bb77973 100644
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -184,7 +184,10 @@ print("Working directory for test execution: " + os.getcwd(), flush=True)
 
 # call ctest
 ctest = subprocess.run(
-    [ctest_executable, "-C", "Debug", "--no-tests=error", "--no-compress-output", "--output-on-failure","--gtest_output=xml:report.xml"])
+    [ctest_executable, "-C", "Debug", "--no-tests=error", "--no-compress-output", "--output-on-failure","--gtest_output=xml:report.xml"],
+    stdin=subprocess.DEVNULL,
+    stdout=subprocess.PIPE,
+    stderr=subprocess.PIPE)
 
 print("Return Code: ", ctest.returncode)