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 334C35F5B for ; Mon, 19 Mar 2018 10:05:03 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Mar 2018 02:05:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,329,1517904000"; d="scan'208";a="39183623" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 19 Mar 2018 02:05:02 -0700 From: "zhu,shuai" To: dts@dpdk.org Cc: "zhu,shuai" Date: Mon, 19 Mar 2018 17:06:16 +0800 Message-Id: <1521450376-87520-1-git-send-email-shuaix.zhu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/short_live:Fix the problem of SIGTERM and SIGINT. 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: Mon, 19 Mar 2018 09:05:04 -0000 As DPDK will capture signals, " SIGTERM" and "SIGINT", it needs some time to prepare to exit. Signed-off-by: zhu,shuai --- tests/TestSuite_short_live.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py index 62c43a5..238e3ab 100644 --- a/tests/TestSuite_short_live.py +++ b/tests/TestSuite_short_live.py @@ -162,6 +162,7 @@ class TestShortLiveApp(TestCase): self.dut.send_expect("pkill -2 testpmd", "#", 60, True) else: self.dut.send_expect("pkill -15 testpmd", "#", 60, True) + time.sleep(2) def test_clean_up_with_signal_l2fwd(self): repeat_time = 5 -- 1.9.3