mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virnetsockettest: Allow changing the proxy parameter
Currently the test cases all follow the proxy=auto behavior, but we want to add coverage for other proxy modes as well. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
02c9948e36
commit
5068a76493
@ -441,6 +441,7 @@ struct testSSHData {
|
||||
const char *username;
|
||||
bool noTTY;
|
||||
bool noVerify;
|
||||
virNetClientProxy proxy;
|
||||
const char *netcat;
|
||||
const char *keyfile;
|
||||
const char *path;
|
||||
@ -456,7 +457,7 @@ static int testSocketSSH(const void *opaque)
|
||||
virNetSocket *csock = NULL; /* Client socket */
|
||||
int ret = -1;
|
||||
char buf[1024];
|
||||
g_autofree char *command = virNetClientSSHHelperCommand(VIR_NET_CLIENT_PROXY_AUTO,
|
||||
g_autofree char *command = virNetClientSSHHelperCommand(data->proxy,
|
||||
data->netcat,
|
||||
data->path,
|
||||
"qemu:///session",
|
||||
|
Loading…
x
Reference in New Issue
Block a user