From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id D6DE8377E for ; Thu, 28 Jul 2016 03:46:20 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP; 27 Jul 2016 18:46:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,432,1464678000"; d="scan'208";a="854903528" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga003.jf.intel.com with ESMTP; 27 Jul 2016 18:46:18 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id u6S1kGjO010288; Thu, 28 Jul 2016 09:46:16 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id u6S1kEQK025148; Thu, 28 Jul 2016 09:46:16 +0800 Received: (from pengyuan@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id u6S1kEGR025144; Thu, 28 Jul 2016 09:46:14 +0800 From: pengyuan To: dts@dpdk.org Cc: pengyuan Date: Thu, 28 Jul 2016 09:46:11 +0800 Message-Id: <1469670371-25108-1-git-send-email-yuan.peng@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH]tests:unit_tests_dump correct the pci address X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2016 01:46:21 -0000 Signed-off-by: pengyuan diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py index 381c2fe..afdc256 100644 --- a/tests/TestSuite_unit_tests_dump.py +++ b/tests/TestSuite_unit_tests_dump.py @@ -185,19 +185,19 @@ class TestUnitTestsDump(TestCase): Run devargs dump test case. """ test_port = self.dut_ports[0] - self.dut.send_expect("./%s/app/test -n 1 -c ffff -b 0000:%s" + self.dut.send_expect("./%s/app/test -n 1 -c ffff -b %s" % (self.target, self.dut.ports_info[test_port]['pci']), "R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("dump_devargs", "RTE>>", self.run_cmd_time * 2) self.dut.send_expect("quit", "# ") - black_str = "PCI blacklist 0000:%s" % self.dut.ports_info[test_port]['pci'] + black_str = "PCI blacklist %s" % self.dut.ports_info[test_port]['pci'] self.verify(black_str in out, "Dump black list failed") - self.dut.send_expect("./%s/app/test -n 1 -c ffff -w 0000:%s" + self.dut.send_expect("./%s/app/test -n 1 -c ffff -w %s" % (self.target, self.dut.ports_info[test_port]['pci']), "R.*T.*E.*>.*>", self.start_test_time) out = self.dut.send_expect("dump_devargs", "RTE>>", self.run_cmd_time * 2) self.dut.send_expect("quit", "# ") - white_str = "PCI whitelist 0000:%s" % self.dut.ports_info[test_port]['pci'] + white_str = "PCI whitelist %s" % self.dut.ports_info[test_port]['pci'] self.verify(white_str in out, "Dump white list failed") def tear_down(self): -- 2.5.5