From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id DC13BC316 for ; Fri, 19 Jun 2015 03:26:41 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 18 Jun 2015 18:26:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,641,1427785200"; d="scan'208";a="746215879" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga002.fm.intel.com with ESMTP; 18 Jun 2015 18:26:40 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t5J1Qc7m022831; Fri, 19 Jun 2015 09:26:38 +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 t5J1Qa9W017218; Fri, 19 Jun 2015 09:26:38 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t5J1QaQf017214; Fri, 19 Jun 2015 09:26:36 +0800 From: Yong Liu To: dts@dpdk.org Date: Fri, 19 Jun 2015 09:26:31 +0800 Message-Id: <1434677191-17182-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] Quick fix for dts can't work by import virtual scene module 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, 19 Jun 2015 01:26:42 -0000 From: Marvin Liu Signed-off-by: Marvin Liu diff --git a/framework/dts.py b/framework/dts.py index cf944da..2af3975 100644 --- a/framework/dts.py +++ b/framework/dts.py @@ -329,7 +329,7 @@ def dts_run_suite(crbInst, test_suites, target, nic, scene): module = test_module for test_classname, test_class in get_subclasses(test_module, TestCase): - if scene.vm_dut_enable: + if scene and scene.vm_dut_enable: duts = scene.get_vm_duts() tester.dut = duts[0] test_suite = test_class(duts[0], tester, target, test_suite) -- 1.9.3