diff --git a/cmake_targets/autotests/core.py b/cmake_targets/autotests/core.py
index 33a58a84c957afb365fefb041a79a2ae96207cf0..5b1f39a85b74e0953101446c9971fb079d72ecbe 100644
--- a/cmake_targets/autotests/core.py
+++ b/cmake_targets/autotests/core.py
@@ -241,7 +241,7 @@ class core:
         if  (rsp.find(expect) == -1):
             return 'OK'
         else:
-            print "command = " + cmd + "expect  = " + expect + "rsp = " + rsp
+            print "command = " + command + "expect  = " + expect + "rsp = " + rsp
             raise log.err(self.failed(command, expect,debug))