[libvirt PATCH 08/11] virnetsockettest: Tweak input for test 7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The important part of the value we assign to "netcat" is that it
contains whitespace, so drop everything else to highlight this
fact. Change the path to the socket so that it also contains
whitespace: this will not actually work outside of the test suite
at the moment, but we're going to fix that in an upcoming commit.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 tests/virnetsockettest.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/virnetsockettest.c b/tests/virnetsockettest.c
index c1d3e39856..557d781605 100644
--- a/tests/virnetsockettest.c
+++ b/tests/virnetsockettest.c
@@ -666,15 +666,15 @@ mymain(void)
 
     struct testSSHData sshData7 = {
         .nodename = "somehost",
-        .netcat = "/tmp/fo o/nc",
-        .path = "/tmp/socket",
+        .netcat = "n c",
+        .path = "/tmp/sock et",
         .expectOut = "-T -e none -- somehost sh -c '"
-                         "if '''\\''/tmp/fo o/nc'\\'''' -q 2>&1 | grep \"requires an argument\" >/dev/null 2>&1; then "
+                         "if '''\\''n c'\\'''' -q 2>&1 | grep \"requires an argument\" >/dev/null 2>&1; then "
                              "ARG=-q0; "
                          "else "
                              "ARG=; "
                          "fi; "
-                         "'''\\''/tmp/fo o/nc'\\'''' $ARG -U /tmp/socket"
+                         "'''\\''n c'\\'''' $ARG -U /tmp/sock et"
                      "'\n",
     };
     VIR_WARNINGS_RESET
-- 
2.34.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux