]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virnetsockettest: Tweak input for test 7
authorAndrea Bolognani <abologna@redhat.com>
Thu, 10 Feb 2022 09:48:09 +0000 (10:48 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 14 Feb 2022 10:32:09 +0000 (11:32 +0100)
The important part of the value we assign to "netcat" is that it
contains whitespace, so drop everything else to highlight this
fact.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/virnetsockettest.c

index d6bcfc93d15cfa322282f4e1e1f8eb010a56856b..6ae21155b386e0e301c384f8770693647cc870e0 100644 (file)
@@ -666,15 +666,15 @@ mymain(void)
 
     struct testSSHData sshData7 = {
         .nodename = "somehost",
-        .netcat = "/tmp/fo o/nc",
+        .netcat = "c",
         .path = "/tmp/socket",
         .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 '''\\''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"
+                         "'''\\''c'\\'''' $ARG -U /tmp/socket"
                      "'\n",
     };
     VIR_WARNINGS_RESET