diff options
author | Sridhar K. N. Rao <sridhar.rao@spirent.com> | 2021-09-01 11:26:28 +0530 |
---|---|---|
committer | Sridhar K. N. Rao <sridhar.rao@spirent.com> | 2021-09-07 10:29:55 +0530 |
commit | 17e20bfa70d1a9ce5e6ee6687245e3e22f3633a8 (patch) | |
tree | 76240b45f7bc1ef5de20a60866908b0a3c33b7a8 /testcases/testcase.py | |
parent | 8f4fd575ae70079d2bff9f9af4b251a3961b7428 (diff) |
Clean Output Option.
This patch adds support for clean output - displaying only final
results.
User has to run with --verbosity and level as error or critical.
--verbosity is an existing option.
Remove unnecessary spaces
Signed-off-by: Sridhar K. N. Rao <sridhar.rao@spirent.com>
Change-Id: Id227a4b787c4c7e4dd97f28009946ac6a8a802d3
Diffstat (limited to 'testcases/testcase.py')
-rw-r--r-- | testcases/testcase.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/testcases/testcase.py b/testcases/testcase.py index c13754bc..7f4ad9ac 100644 --- a/testcases/testcase.py +++ b/testcases/testcase.py @@ -207,7 +207,7 @@ class TestCase(object): self._k8s = S.getValue('K8S') if self._k8s: if S.getValue('EXT_VSWITCH'): - self._evfctl = extvswitchfctl.ExtVswitchFlowCtl() + self._evfctl = extvswitchflctl.ExtVswitchFlowCtl() def run_initialize(self): @@ -398,7 +398,8 @@ class TestCase(object): # dump vswitch flows before they are affected by VNF termination if not self._vswitch_none: - self._vswitch_ctl.dump_vswitch_connections() + if not S.getValue('CLEAN_OUTPUT'): + self._vswitch_ctl.dump_vswitch_connections() # garbage collection for case that TestSteps modify existing deployment self.step_stop_vnfs() @@ -413,7 +414,11 @@ class TestCase(object): self._testcase_start_time)) logging.info("Testcase execution time: %s", self._testcase_run_time) # report test results + if S.getValue('CLEAN_OUTPUT'): + print('BEGIN OF THE RESULTS') self.run_report() + if S.getValue('CLEAN_OUTPUT'): + print('END OF THE RESULTS') def _append_results(self, results): """ |