summaryrefslogtreecommitdiff
path: root/test/system/helpers.t
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-08 14:48:24 -0400
committerGitHub <noreply@github.com>2021-09-08 14:48:24 -0400
commit26c8549ae3d4f5c3742d006e40a51080d5ae0746 (patch)
treefd5100db6dc89b39e55340a1a0562d92dea45067 /test/system/helpers.t
parent400799b58cd2c67aea4754d370415081e2d303c6 (diff)
parent1ff797e3621e7e370f53c4c71c9f40bb6a878936 (diff)
downloadpodman-26c8549ae3d4f5c3742d006e40a51080d5ae0746.tar.gz
podman-26c8549ae3d4f5c3742d006e40a51080d5ae0746.tar.bz2
podman-26c8549ae3d4f5c3742d006e40a51080d5ae0746.zip
Merge pull request #11486 from edsantiago/bats
system tests: new random_free_port helper
Diffstat (limited to 'test/system/helpers.t')
-rwxr-xr-xtest/system/helpers.t10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/system/helpers.t b/test/system/helpers.t
index 190e8ba35..b83d9a89b 100755
--- a/test/system/helpers.t
+++ b/test/system/helpers.t
@@ -213,8 +213,16 @@ declare -a lines=(
)
check_same_dev "zero-line output"
-
# END remove_same_dev_warning
###############################################################################
+# BEGIN random_free_port
+
+# Assumes that 16700 is open
+found=$(random_free_port 16700-16700)
+
+check_result "$found" "16700" "random_free_port"
+
+# END random_free_port
+###############################################################################
exit $rc