commit 9608692cc0d766a006638612f5386cdd99da8b87
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Fri Feb 8 11:09:48 2013 +0100
TestTCPListen: option parsing bug fixes
This commit fixes the same bug with the "port" option as in the
TestTCPConnect.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
test_modules/TestTCPListen.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/test_modules/TestTCPListen.py b/test_modules/TestTCPListen.py
index 3aa4d47..eb1697b 100644
--- a/test_modules/TestTCPListen.py
+++ b/test_modules/TestTCPListen.py
@@ -48,7 +48,7 @@ class TestTCPListen(TestGeneric):
# either port or port_range should be set
port = self.get_opt("port")
if port:
- self._port = port
+ self._port = int(port)
else:
port_range = self.get_opt("port_range")
if port_range:
@@ -169,7 +169,7 @@ class TestTCPListen(TestGeneric):
ports = []
if self._port:
- ports.extend(self._port)
+ ports.append(self._port)
else:
r = self._parse_port_range()
ports.extend(r)