test suite reviews and discussions
 help / color / mirror / Atom feed
From: Jingguo Fu <jingguox.fu@intel.com>
To: dts@dpdk.org
Cc: Jingguo Fu <jingguox.fu@intel.com>
Subject: [dts] [DTS][PATCH 2/2] fix cmdline test case for parameter change update unit test case: for cmdline, objtest -> object
Date: Wed,  3 Feb 2016 15:17:23 +0800	[thread overview]
Message-ID: <1454483843-25533-2-git-send-email-jingguox.fu@intel.com> (raw)
In-Reply-To: <1454483843-25533-1-git-send-email-jingguox.fu@intel.com>

Signed-off-by: Jingguo Fu <jingguox.fu@intel.com>
---
 tests/TestSuite_cmdline.py | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/tests/TestSuite_cmdline.py b/tests/TestSuite_cmdline.py
index e1496f9..13b0e63 100644
--- a/tests/TestSuite_cmdline.py
+++ b/tests/TestSuite_cmdline.py
@@ -73,27 +73,27 @@ class TestCmdline(TestCase):
         """
 
         # add a test object with an IP address associated
-        out = self.dut.send_expect("add objtest 192.168.0.1", "example> ")
-        self.verify("Object objtest added, ip=192.168.0.1" in out, "add command error")
+        out = self.dut.send_expect("add object 192.168.0.1", "example> ")
+        self.verify("Object object added, ip=192.168.0.1" in out, "add command error")
 
         # verify the object existance
-        out = self.dut.send_expect("add objtest 192.168.0.1", "example> ")
-        self.verify("Object objtest already exist" in out, "double add command error")
+        out = self.dut.send_expect("add object 192.168.0.1", "example> ")
+        self.verify("Object object already exist" in out, "double add command error")
 
         # show the object result by 'show' command
-        out = self.dut.send_expect("show objtest", "example> ")
-        self.verify("Object objtest, ip=192.168.0.1" in out, "show command error")
+        out = self.dut.send_expect("show object", "example> ")
+        self.verify("Object object, ip=192.168.0.1" in out, "show command error")
 
         # delete the object in cmdline
-        out = self.dut.send_expect("del objtest", "example> ")
-        self.verify("Object objtest removed, ip=192.168.0.1" in out, "del command error")
+        out = self.dut.send_expect("del object", "example> ")
+        self.verify("Object object removed, ip=192.168.0.1" in out, "del command error")
 
         # double delete the object to verify the correctness
-        out = self.dut.send_expect("del objtest", "example> ", 1)
+        out = self.dut.send_expect("del object", "example> ", 1)
         self.verify("Bad arguments" in out, "double del command error")
 
         # verify no such object anymore
-        out = self.dut.send_expect("show objtest", "example> ", 1)
+        out = self.dut.send_expect("show object", "example> ", 1)
         self.verify("Bad arguments" in out, "final show command error")
 
         # verify the help command
-- 
1.9.3

  reply	other threads:[~2016-02-03  7:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-03  7:17 [dts] [DTS][PATCH 1/2] update cmdline test plan for parameter change update unit test plan: " Jingguo Fu
2016-02-03  7:17 ` Jingguo Fu [this message]
2016-02-03  8:43 ` Liu, Yong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1454483843-25533-2-git-send-email-jingguox.fu@intel.com \
    --to=jingguox.fu@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).