From: Jiri Pirko <jiri(a)mellanox.com>
Signed-off-by: Jiri Pirko <jiri(a)mellanox.com>
---
lnst/Common/TestsCommon.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lnst/Common/TestsCommon.py b/lnst/Common/TestsCommon.py
index accb6b8..817d747 100644
--- a/lnst/Common/TestsCommon.py
+++ b/lnst/Common/TestsCommon.py
@@ -142,5 +142,9 @@ class TestGeneric(NetTestCommandGeneric):
bg_id = " bg_id: %s" % self._command["bg_id"]
else:
bg_id = ""
- cmd = "%-9s%s%s" %(cmd_type, cmd_val, bg_id)
+ if "desc" in self._command:
+ desc = " desc: \"%s\"" % self._command["desc"]
+ else:
+ desc = ""
+ cmd = "%-9s%s%s%s" %(cmd_type, cmd_val, bg_id, desc)
return cmd
--
2.4.3
Show replies by date