diff --git a/dedal/tests/unit_tests/test_bash_command_executor.py b/dedal/tests/unit_tests/test_bash_command_executor.py
index 368d5136a2784f225a82a2c47dca9e581962461f..e216cc0f85dd22841d3c956b1714e8f444f46c7f 100644
--- a/dedal/tests/unit_tests/test_bash_command_executor.py
+++ b/dedal/tests/unit_tests/test_bash_command_executor.py
@@ -208,7 +208,7 @@ class TestBashCommandExecutor:
     def test_execute_unknown_os(self, mocker):
         # Arrange
         errors = {
-            "posix": "Error: Bash Command: ['undefined'] not found: [Errno 2] No such file or directory",
+            "posix": "Error: Bash Command: ['undefined'] not found: [Errno 2] No such file or directory: 'undefined'",
             "nt": "Error: Bash Command: ['undefined'] not found: [WinError 2] The system cannot find the file "
                   'specified'
         }