test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] Quick fix for dts can't work by import virtual scene module
@ 2015-06-19  1:26 Yong Liu
  0 siblings, 0 replies; only message in thread
From: Yong Liu @ 2015-06-19  1:26 UTC (permalink / raw)
  To: dts

From: Marvin Liu <yong.liu@intel.com>

Signed-off-by: Marvin Liu <yong.liu@intel.com>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-19  1:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-19  1:26 [dts] [PATCH] Quick fix for dts can't work by import virtual scene module Yong Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).