[V1,05/10] framework/dts: add global variables
Commit Message
add'test_mev','test_acc','queue_model','vport','rx_vport' to config datapath and
vport when executing cases.
Signed-off-by: Jin Ling <jin.ling@intel.com>
---
framework/dts.py | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
@@ -145,10 +145,33 @@ def dts_parse_config(config, section):
dcf_mode = config.get(section, "dcf_mode").strip().lower()
except:
dcf_mode = ""
+ try:
+ test_mev = config.get(section, "test_mev").strip().lower()
+ except:
+ test_mev=""
+ try:
+ test_acc = config.get(section, "test_acc").strip().lower()
+ except:
+ test_acc=""
+ try :
+ queue_model = config.get(section, "queue_model").strip().lower()
+ except:
+ queue_model = ""
+ try :
+ vport = config.get(section, "vport").strip().lower()
+ except:
+ vport = ""
+ try :
+ rx_vport = config.get(section, "rx_vport").strip().lower()
+ except:
+ rx_vport = "0"
settings.save_global_setting(settings.DPDK_RXMODE_SETTING, rx_mode)
settings.save_global_setting(settings.DPDK_DCFMODE_SETTING, dcf_mode)
-
+ settings.save_global_setting(settings.DPDK_QUEUE_MODEL_SETTING, queue_model)
+ settings.save_global_setting(settings.DPDK_VPORT_SETTING, vport)
+ settings.save_global_setting(settings.DPDK_RX_VPORT_SETTING, rx_vport)
+ settings.save_global_setting(settings.DPDK_TEST_MEV_SETTING, test_mev)
suite_list_dedup = {}
## suite_list_dedup[suite_name] := { True | Set | ... }
## True := All Cases to Run