summaryrefslogtreecommitdiff
path: root/framework/dts.py
diff options
context:
space:
mode:
authorMarvin Liu <yong.liu@intel.com>2015-07-09 17:07:39 +0800
committerMarvin Liu <yong.liu@intel.com>2015-07-10 10:47:47 +0800
commit249c05fd7ff2b7bd9d4a473b3deafeab0d968c92 (patch)
tree310ac18779f405bf6db4eac37a05ea19fbd88783 /framework/dts.py
parent0aca9e7582f8db0e18479bd6affc383c06de488f (diff)
fix bug that read_cache option not work
Cache file only can save string object, so skip save port net device object. In prerequisties function, we will instantiate net device and save it into ports_info structure. Cache file now saved in output folder. Signed-off-by: Marvin Liu <yong.liu@intel.com>
Diffstat (limited to 'framework/dts.py')
-rw-r--r--framework/dts.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/dts.py b/framework/dts.py
index 2e67e40..6d8b950 100644
--- a/framework/dts.py
+++ b/framework/dts.py
@@ -235,7 +235,8 @@ def dts_crbs_init(crbInst, skip_setup, read_cache, project, base_dir, nic, virtt
"""
global dut
global tester
- serializer.set_serialized_filename('.%s.cache' % crbInst['IP'])
+ serializer.set_serialized_filename(FOLDERS['Output'] +
+ '/.%s.cache' % crbInst['IP'])
serializer.load_from_file()
dut = get_project_obj(project, Dut, crbInst, serializer)