[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 16/18] tests/acceptance/virtiofs_submounts: required space between
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 16/18] tests/acceptance/virtiofs_submounts: required space between IP and port |
Date: |
Mon, 8 Feb 2021 14:37:09 +0100 |
From: Cleber Rosa <crosa@redhat.com>
AFAICT, there should not be a situation where IP and port do not have
at least one whitespace character separating them.
This may be true for other '\s*' patterns in the same regex too.
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210203172357.1422425-10-crosa@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
tests/acceptance/virtiofs_submounts.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/acceptance/virtiofs_submounts.py
b/tests/acceptance/virtiofs_submounts.py
index 82941756086..28b2920b88c 100644
--- a/tests/acceptance/virtiofs_submounts.py
+++ b/tests/acceptance/virtiofs_submounts.py
@@ -83,7 +83,7 @@ def get_portfwd(self):
command_line='info usernet')
for line in res.split('\r\n'):
match = \
- re.search(r'TCP.HOST_FORWARD.*127\.0\.0\.1\s*(\d+)\s+10\.',
+ re.search(r'TCP.HOST_FORWARD.*127\.0\.0\.1\s+(\d+)\s+10\.',
line)
if match is not None:
port = int(match[1])
--
2.26.2
- [PULL 07/18] tests/acceptance: Add a test for the virtex-ml507 ppc machine, (continued)
- [PULL 07/18] tests/acceptance: Add a test for the virtex-ml507 ppc machine, Philippe Mathieu-Daudé, 2021/02/08
- [PULL 05/18] tests/acceptance: Move the pseries test to a separate file, Philippe Mathieu-Daudé, 2021/02/08
- [PULL 06/18] tests/acceptance: Test the mpc8544ds machine, Philippe Mathieu-Daudé, 2021/02/08
- [PULL 11/18] tests/acceptance/boot_linux: rename misleading cloudinit method, Philippe Mathieu-Daudé, 2021/02/08
- [PULL 12/18] tests/acceptance/virtiofs_submounts: use workdir property, Philippe Mathieu-Daudé, 2021/02/08
- [PULL 14/18] tests/acceptance/virtiofs_submounts: use a virtio-net device instead, Philippe Mathieu-Daudé, 2021/02/08
- [PULL 15/18] tests/acceptance/virtiofs_submounts: standardize port as integer, Philippe Mathieu-Daudé, 2021/02/08
- [PULL 04/18] tests/acceptance: Test U-Boot/Linux from Armbian 20.08 on Orange Pi PC, Philippe Mathieu-Daudé, 2021/02/08
- [PULL 09/18] tests/acceptance: Re-enable the microblaze test, Philippe Mathieu-Daudé, 2021/02/08
- [PULL 13/18] tests/acceptance/virtiofs_submounts: do not ask for ssh key password, Philippe Mathieu-Daudé, 2021/02/08
- [PULL 16/18] tests/acceptance/virtiofs_submounts: required space between IP and port,
Philippe Mathieu-Daudé <=
- [PULL 10/18] tests/acceptance/boot_linux: fix typo on cloudinit error message, Philippe Mathieu-Daudé, 2021/02/08
- [PULL 18/18] Acceptance Tests: remove unnecessary tag from documentation example, Philippe Mathieu-Daudé, 2021/02/08
- [PULL 08/18] tests/acceptance: Increase the timeout in the replay tests, Philippe Mathieu-Daudé, 2021/02/08
- [PULL 17/18] Acceptance tests: clarify ssh connection failure reason, Philippe Mathieu-Daudé, 2021/02/08
- Re: [PULL 00/18] Integration testing patches for 2021-02-08, Peter Maydell, 2021/02/08