From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id A4B88911B for ; Fri, 28 Jul 2017 07:28:23 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP; 27 Jul 2017 22:28:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,424,1496127600"; d="scan'208";a="883652027" Received: from dpdk-test38.sh.intel.com ([10.67.111.97]) by FMSMGA003.fm.intel.com with ESMTP; 27 Jul 2017 22:28:21 -0700 From: Marvin Liu To: dts@dpdk.org Cc: Marvin Liu Date: Fri, 28 Jul 2017 01:26:13 -0400 Message-Id: <1501219573-8593-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH] framework dts: fix commands argument not workable 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: Fri, 28 Jul 2017 05:28:24 -0000 Name of CRB has been changed to "type" + IP. So commands will not workable. This patch will fix that. Signed-off-by: Marvin Liu diff --git a/framework/dts.py b/framework/dts.py index f7ab795..5b92e17 100644 --- a/framework/dts.py +++ b/framework/dts.py @@ -192,7 +192,7 @@ def dts_run_commands(crb, dts_commands): """ for dts_command in dts_commands: command = dts_command['command'] - if crb.NAME == dts_command['host']: + if dts_command['host'] in crb.NAME: if crb.stage == dts_command['stage']: ret = crb.send_expect(command, expected="# ", verify=True) if type(ret) is int: @@ -324,6 +324,7 @@ def dts_run_prerequisties(duts, tester, pkgName, patch, dts_commands, serializer try: for dutobj in duts: + dts_run_commands(dutobj, dts_commands) dutobj.set_package(pkgName, patch) dutobj.prerequisites() dts_run_commands(dutobj, dts_commands) -- 1.9.3