diff options
| author | Vasileios Anagnostopoulos <vasileios.anagnostopoulos@siemens.com> | 2022-10-17 13:11:21 +0200 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-03-08 17:08:01 -0500 |
| commit | e14985f0e392465f8aa91264269dc1b029ce7ac7 (patch) | |
| tree | 4e060f8d662384fadb88adaf47138e285deda1aa /recipes-containers/netavark/files/tests.patch | |
| parent | 3e4863e5790266b3736041092f358636048f44cf (diff) | |
| download | meta-virtualization-e14985f0e392465f8aa91264269dc1b029ce7ac7.tar.gz | |
netavark: Add ptest support
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/netavark/files/tests.patch')
| -rw-r--r-- | recipes-containers/netavark/files/tests.patch | 17 |
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 @@ | |||
| 1 | diff --git a/test/helpers.bash b/test/helpers.bash | ||
| 2 | index 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" | ||
