diff options
author | 2016-11-10 19:48:15 +0200 | |
---|---|---|
committer | 2016-11-10 19:48:15 +0200 | |
commit | 98dc1571776f4a8538e6ac72ce4e3fd4a2295026 (patch) | |
tree | fabef8a7fd3653e450433c196675346862d044dd /scripts/automation/regression | |
parent | e9b4c74dae5a79a6ad77f0f1328f90795e9cc421 (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')
-rwxr-xr-x | scripts/automation/regression/functional_tests/trex_cfg_creator_test.py | 3 |
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'] |