Skip to content

Commit fcf679f

Browse files
committed
hack/test-port-forwarding.pl: print cmd in guest
Signed-off-by: Norio Nomura <[email protected]>
1 parent 6c5ce5c commit fcf679f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hack/test-port-forwarding.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@
191191

192192
my $sudo = $test->{guest_port} < 1024 ? "sudo " : "";
193193
print $lima "${sudo}${cmd} >$listener.${id} 2>/dev/null &\n";
194+
print "Running in guest: ${sudo}${cmd} >$listener.${id} 2>/dev/null &\n";
194195
}
195196

196197
# Make sure the guest- and hostagents had enough time to set up the forwards
@@ -211,7 +212,7 @@
211212
my $tcp_dest = $test->{host_ip} =~ /:/ ? "TCP6:[$test->{host_ip}]:$test->{host_port}" : "TCP:$test->{host_ip}:$test->{host_port}";
212213
$cmd = $test->{host_socket} eq "" ? "socat -u STDIN $tcp_dest,connect-timeout=$connectionTimeout" : "socat -u STDIN UNIX-CONNECT:$test->{host_socket}";
213214
}
214-
print "Running: $cmd\n";
215+
print "Running in host: $cmd\n";
215216
open(my $netcat, "| $cmd") or die "Can't run '$cmd': $!";
216217
print $netcat "$test->{log_msg}\n";
217218
# Don't check for errors on close; macOS nc seems to return non-zero exit code even on success

0 commit comments

Comments
 (0)