From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id A99EC11C5 for ; Tue, 14 Jul 2015 08:19:12 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 13 Jul 2015 23:19:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,469,1432623600"; d="scan'208";a="763962292" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 13 Jul 2015 23:19:11 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t6E6J9o5012631; Tue, 14 Jul 2015 14:19:09 +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 t6E6J6Zu013729; Tue, 14 Jul 2015 14:19:08 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t6E6J6q0013725; Tue, 14 Jul 2015 14:19:06 +0800 From: Yong Liu To: dts@dpdk.org Date: Tue, 14 Jul 2015 14:19:05 +0800 Message-Id: <1436854745-13693-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] Clear all buffers before every test suite 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: Tue, 14 Jul 2015 06:19:13 -0000 From: Marvin Liu Signed-off-by: Marvin Liu diff --git a/framework/dts.py b/framework/dts.py index b9cd370..6e38cac 100644 --- a/framework/dts.py +++ b/framework/dts.py @@ -552,6 +552,9 @@ def execute_test_setup_all(test_case): Execute suite setup_all function before cases. """ try: + # clear all previous output + test_case.dut.get_session_output(timeout=0.1) + test_case.tester.get_session_output(timeout=0.1) test_case.set_up_all() return True except Exception: -- 1.9.3