This patch prints all supported test names in the logging warning
message automatically based on supported_tests variable in Netperf
class, so we don't have to update it manually any more.
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
test_modules/Netperf.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/test_modules/Netperf.py b/test_modules/Netperf.py
index cef1447..8081070 100644
--- a/test_modules/Netperf.py
+++ b/test_modules/Netperf.py
@@ -97,10 +97,10 @@ class Netperf(TestGeneric):
test that will be performed
"""
if self._testname not in self.supported_tests:
- logging.warning("Only TCP_STREAM, TCP_RR, UDP_STREAM, "
- "UDP_RR, SCTP_STREAM, SCTP_STREAM_MANY and SCTP_RR tests "
- "are now officialy supported by LNST. You "
- "can use other tests, but test result may not be
correct.")
+ supported_tests = ', '.join(self.supported_tests)
+ logging.warning("Only %s tests are now officialy supported
"
+ "by LNST. You can use other tests, but test result may not
"
+ "be correct." % supported_test)
cmd += " -t %s" % self._testname
if self._confidence is not None and self._num_parallel <= 1:
--
2.9.3