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>
struct testSSHData sshData7 = {
.nodename = "somehost",
- .netcat = "/tmp/fo o/nc",
+ .netcat = "n 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 '''\\''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/socket"
"'\n",
};
VIR_WARNINGS_RESET