From 98dc1571776f4a8538e6ac72ce4e3fd4a2295026 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Thu, 10 Nov 2016 19:48:15 +0200 Subject: Add nicer error if -c is bigger than number of threads in platform config Signed-off-by: Yaroslav Brustinov --- .../automation/regression/functional_tests/trex_cfg_creator_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') 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'] -- cgit 1.2.3-korg