summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/functional_tests/trex_cfg_creator_test.py
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-11-10 19:48:15 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-11-10 19:48:15 +0200
commit98dc1571776f4a8538e6ac72ce4e3fd4a2295026 (patch)
treefabef8a7fd3653e450433c196675346862d044dd /scripts/automation/regression/functional_tests/trex_cfg_creator_test.py
parente9b4c74dae5a79a6ad77f0f1328f90795e9cc421 (diff)
Add nicer error if -c is bigger than number of threads in platform config
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts/automation/regression/functional_tests/trex_cfg_creator_test.py')
-rwxr-xr-xscripts/automation/regression/functional_tests/trex_cfg_creator_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/automation/regression/functional_tests/trex_cfg_creator_test.py b/scripts/automation/regression/functional_tests/trex_cfg_creator_test.py
index 5ff6b318..be94779c 100755
--- a/scripts/automation/regression/functional_tests/trex_cfg_creator_test.py
+++ b/scripts/automation/regression/functional_tests/trex_cfg_creator_test.py
@@ -694,5 +694,6 @@ class TRexCfgCreator_Test:
@classmethod
def tearDownClass(cls):
- sys.path.remove(CTRexScenario.scripts_path)
+ if CTRexScenario.scripts_path in sys.path:
+ sys.path.remove(CTRexScenario.scripts_path)
del sys.modules['dpdk_setup_ports']