From 23a7f4e0deffb075d24b3e731246269d5a35b748 Mon Sep 17 00:00:00 2001 From: Romain Geissler Date: Sat, 19 Feb 2022 13:57:20 +0000 Subject: Option --url and --connection should imply --remote. Closes #13242 Signed-off-by: Romain Geissler --- test/system/001-basic.bats | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test') diff --git a/test/system/001-basic.bats b/test/system/001-basic.bats index 9b0a71285..721fb4bca 100644 --- a/test/system/001-basic.bats +++ b/test/system/001-basic.bats @@ -108,6 +108,17 @@ function setup() { if grep -- " --remote " <<<"$output"; then die "podman --help, with CONTAINER_CONNECTION set, is showing --remote" fi + + # When it detects --url or --connection, --remote is not an option + run_podman --url foobar --help + if grep -- " --remote " <<<"$output"; then + die "podman --help, with --url set, is showing --remote" + fi + + run_podman --connection foobar --help + if grep -- " --remote " <<<"$output"; then + die "podman --help, with --connection set, is showing --remote" + fi } # Check that just calling "podman-remote" prints the usage message even -- cgit v1.2.3-54-g00ecf