summaryrefslogtreecommitdiffstats
path: root/recipes-containers/netavark/files/tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/netavark/files/tests.patch')
-rw-r--r--recipes-containers/netavark/files/tests.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/recipes-containers/netavark/files/tests.patch b/recipes-containers/netavark/files/tests.patch
new file mode 100644
index 00000000..254e4e9d
--- /dev/null
+++ b/recipes-containers/netavark/files/tests.patch
@@ -0,0 +1,17 @@
1diff --git a/test/helpers.bash b/test/helpers.bash
2index 89866ec..017b2b5 100644
3--- a/test/helpers.bash
4+++ b/test/helpers.bash
5@@ -552,10 +552,10 @@ function run_nc_test() {
6 fi
7
8 nsenter -n -t "${CONTAINER_NS_PIDS[$container_ns]}" timeout --foreground -v --kill=10 5 \
9- nc $nc_common_args -l -p $container_port &>"$NETAVARK_TMPDIR/nc-out" <$stdin &
10+ ncat $nc_common_args -l -p $container_port &>"$NETAVARK_TMPDIR/nc-out" <$stdin &
11
12 data=$(random_string)
13- run_in_host_netns nc $nc_common_args $connect_ip $host_port <<<"$data"
14+ run_in_host_netns ncat $nc_common_args $connect_ip $host_port <<<"$data"
15
16 got=$(cat "$NETAVARK_TMPDIR/nc-out")
17 assert "$got" == "$data" "ncat received data"