[dts] [PATCH] Quick fix for dts can't work by import virtual scene module
Yong Liu
yong.liu at intel.com
Fri Jun 19 03:26:31 CEST 2015
From: Marvin Liu <yong.liu at intel.com>
Signed-off-by: Marvin Liu <yong.liu at 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
More information about the dts
mailing list