Merge pull request #994 from edsantiago/safe_netcat

nc (netcat): don't block when run interactively
This commit is contained in:
Mrunal Patel 2017-10-10 16:23:07 -07:00 committed by GitHub
commit 8c83014476

View file

@ -159,7 +159,7 @@ function teardown() {
run crioctl ctr start --id "$ctr_id" run crioctl ctr start --id "$ctr_id"
echo "$output" echo "$output"
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
run nc -w 5 $host_ip 4888 run nc -w 5 $host_ip 4888 </dev/null
echo "$output" echo "$output"
[ "$output" = "crioctl_host" ] [ "$output" = "crioctl_host" ]
[ "$status" -eq 0 ] [ "$status" -eq 0 ]