From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id EBCAA5A44 for ; Wed, 8 Jul 2015 04:20:01 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 07 Jul 2015 19:20:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,428,1432623600"; d="scan'208";a="760242536" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 07 Jul 2015 19:20:00 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t682Jwnj016256; Wed, 8 Jul 2015 10:19:58 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t682JtLN004696; Wed, 8 Jul 2015 10:19:58 +0800 Received: (from jingguox@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t682JtUP004692; Wed, 8 Jul 2015 10:19:55 +0800 From: Haifeng Tang To: dts@dpdk.org Date: Wed, 8 Jul 2015 10:19:53 +0800 Message-Id: <1436321993-4662-1-git-send-email-haifengx.tang@intel.com> X-Mailer: git-send-email 1.7.4.1 Cc: jingguox.fu@intel.com Subject: [dts] [PATCH] remove multi_process extra annotations 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: Wed, 08 Jul 2015 02:20:02 -0000 From: TangHaifeng Signed-off-by: TangHaifeng --- tests/TestSuite_multiprocess.py | 14 -------------- 1 files changed, 0 insertions(+), 14 deletions(-) diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_multiprocess.py index 3a37884..a19967c 100644 --- a/tests/TestSuite_multiprocess.py +++ b/tests/TestSuite_multiprocess.py @@ -37,7 +37,6 @@ Multi-process Test. import dts import time from etgen import IxiaPacketGenerator -import pdb executions = [] from test_case import TestCase @@ -80,32 +79,22 @@ class TestMultiprocess(TestCase, IxiaPacketGenerator): """ Basic operation. """ - #self.dut.alt_session.send_expect("cd dpdk","# ",5) # Send message from secondary to primary - #self.dut.send_expect("./examples/multi_process/simple_mp/simple_mp/%s/simple_mp -n 1 -c 3 --proc-type=primary > out &" % self.target, "# ", 10) self.dut.alt_session.send_expect("./examples/multi_process/simple_mp/simple_mp/%s/simple_mp -n 1 -c 3 --proc-type=primary |tee out " % self.target, "Finished Process Init", 100) time.sleep(20) self.dut.send_expect("./examples/multi_process/simple_mp/simple_mp/%s/simple_mp -n 1 -c C --proc-type=secondary" % self.target, "Finished Process Init", 100) self.dut.send_expect("send hello_primary", ">") self.dut.send_expect("quit", "# ") - #self.dut.send_expect("fg", "simple_mp") - #self.dut.send_expect("quit", "# ") - #out = self.dut.send_expect("cat out", "# ") self.dut.alt_session.send_expect("quit","# ") out = self.dut.alt_session.send_expect("cat out","# ") self.verify("Received 'hello_primary'" in out, "Message not received on primary process") - self.dut.kill_all() # Send message from primary to secondary - #self.dut.send_expect("./examples/multi_process/simple_mp/simple_mp/%s/simple_mp -n 1 -c 3 --proc-type=primary & " % self.target, "# ", 10) self.dut.alt_session.send_expect("./examples/multi_process/simple_mp/simple_mp/%s/simple_mp -n 1 -c 3 --proc-type=primary " % self.target, "Finished Process Init", 10) time.sleep(20) - #self.dut.send_expect("./examples/multi_process/simple_mp/simple_mp/%s/simple_mp -n 1 -c C --proc-type=secondary > out &" % self.target, "Finished Process Init", 10) self.dut.send_expect("./examples/multi_process/simple_mp/simple_mp/%s/simple_mp -n 1 -c C --proc-type=secondary | tee out " % self.target, "Finished Process Init", 10) - #elf.dut.send_expect("fg 1", "simple_mp") self.dut.alt_session.send_expect("send hello_secondary", ">") self.dut.alt_session.send_expect("quit", "# ") - #self.dut.send_expect("fg 2", "simple_mp") self.dut.send_expect("quit", "# ") out = self.dut.send_expect("cat out", "# ") @@ -151,7 +140,6 @@ class TestMultiprocess(TestCase, IxiaPacketGenerator): self.dut.send_expect("send hello_primary", ">") self.dut.send_expect("quit", "# ") - #self.dut.send_expect("fg", "simple_mp") self.dut.alt_session.send_expect("quit", "# ") out = self.dut.send_expect("cat out", "# ") @@ -162,10 +150,8 @@ class TestMultiprocess(TestCase, IxiaPacketGenerator): out = self.dut.alt_session.send_expect("./examples/multi_process/simple_mp/simple_mp/%s/simple_mp -n 1 -c 3 --proc-type=auto |tee out_primary " % self.target, "Finished Process Init", 30) time.sleep(20) self.dut.send_expect("./examples/multi_process/simple_mp/simple_mp/%s/simple_mp -n 1 -c C --proc-type=auto |tee out_secondary " % self.target, "Finished Process Init", 30) - #self.dut.send_expect("fg 1", "simple_mp") self.dut.alt_session.send_expect("send hello_secondary", ">",100) self.dut.alt_session.send_expect("quit", "# ") - #self.dut.send_expect("fg 2", "simple_mp") self.dut.send_expect("quit", "# ") out = self.dut.send_expect("cat out_primary", "# ") self.verify("EAL: Auto-detected process type: PRIMARY" in out, "The type of process (PRIMARY) was not detected properly") -- 1.7.4.4