diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2018-12-06 07:46:13 -0800 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-12-20 12:43:38 +0000 |
commit | defde0f87067eb473660794cbd4a2da69fdd191d (patch) | |
tree | 41a8e78df46ab9483aaf772622e1ba1e5e2e56c1 /test/test_flowprobe.py | |
parent | 57f170bdf9967e3f8ea6e937a70c7f86187f95a2 (diff) |
Tests: Cleanup @skip decorator.
The runnning environment is static as of module load time,
so only evalute the conditions once at module load time.
Track-by: VPP-1518
Change-Id: I73b0d17ae1ff90789e70307f168d43921829aec8
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/test_flowprobe.py')
-rw-r--r-- | test/test_flowprobe.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_flowprobe.py b/test/test_flowprobe.py index cd6fd1c1947..bb5062755f9 100644 --- a/test/test_flowprobe.py +++ b/test/test_flowprobe.py @@ -824,7 +824,7 @@ class Datapath(MethodHolder): self.logger.info("FFP_TEST_FINISH_0002") -@unittest.skipUnless(running_extended_tests(), "part of extended tests") +@unittest.skipUnless(running_extended_tests, "part of extended tests") class DisableIPFIX(MethodHolder): """Disable IPFIX""" @@ -865,7 +865,7 @@ class DisableIPFIX(MethodHolder): self.logger.info("FFP_TEST_FINISH_0001") -@unittest.skipUnless(running_extended_tests(), "part of extended tests") +@unittest.skipUnless(running_extended_tests, "part of extended tests") class ReenableIPFIX(MethodHolder): """Re-enable IPFIX""" @@ -926,7 +926,7 @@ class ReenableIPFIX(MethodHolder): self.logger.info("FFP_TEST_FINISH_0001") -@unittest.skipUnless(running_extended_tests(), "part of extended tests") +@unittest.skipUnless(running_extended_tests, "part of extended tests") class DisableFP(MethodHolder): """Disable Flowprobe feature""" @@ -966,7 +966,7 @@ class DisableFP(MethodHolder): self.logger.info("FFP_TEST_FINISH_0001") -@unittest.skipUnless(running_extended_tests(), "part of extended tests") +@unittest.skipUnless(running_extended_tests, "part of extended tests") class ReenableFP(MethodHolder): """Re-enable Flowprobe feature""" |