From 6c746f02d79fc7977ff57db67b0c309849b507a7 Mon Sep 17 00:00:00 2001
From: Severin Landwein <Severin.Landwein@th-koeln.de>
Date: Tue, 31 May 2022 14:17:54 +0200
Subject: [PATCH] .

---
 examples/unittest/compile_test.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/examples/unittest/compile_test.py b/examples/unittest/compile_test.py
index b4d2dde..37cb2c6 100644
--- a/examples/unittest/compile_test.py
+++ b/examples/unittest/compile_test.py
@@ -8,7 +8,8 @@ import logging
 
 def main():
     command = 'arduino-cli monitor -p /dev/ttyUSB0'
-    process = subprocess.run(command.split, stdout=subprocess.PIPE)
+    process = subprocess.run(command, stdout=subprocess.PIPE)
+    log.error(process.stdout.decode('utf-8'))
     if process.returncode:
         log.error(process.stdout.decode('utf-8'))
         sys.exit(process.returncode)
-- 
GitLab