diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-10-16 14:29:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-16 14:29:40 +0200 |
commit | 0144f46ac5067196019225430847691502d74da7 (patch) | |
tree | 49b7f0c94eaf360c1612befff2f5cd5fd6b5c92f /test | |
parent | 171f7b8975194ff9f47a3dd23adec81d11e6d104 (diff) | |
parent | 468e7c689b718229ed062b3daae9373f7459b6e2 (diff) | |
download | podman-0144f46ac5067196019225430847691502d74da7.tar.gz podman-0144f46ac5067196019225430847691502d74da7.tar.bz2 podman-0144f46ac5067196019225430847691502d74da7.zip |
Merge pull request #11990 from rhatdan/remote
Move CONTAINER_HOST and _CONNECTION to IsRemote Function
Diffstat (limited to 'test')
-rw-r--r-- | test/system/001-basic.bats | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/test/system/001-basic.bats b/test/system/001-basic.bats index 2de96a01a..50735f576 100644 --- a/test/system/001-basic.bats +++ b/test/system/001-basic.bats @@ -98,8 +98,19 @@ function setup() { skip "only applicable on a local run" fi - CONTAINER_HOST=foobar run_podman --log-level=info --help - is "$output" ".*defaulting to '--remote=true'" "CONTAINER_HOST sets --remote true" + CONTAINER_HOST=foobar run_podman --help + # Should not have --remote flag + echo $output | grep -v -qw -- "--remote" + if [ $? -ne 0 ]; then + die "Should not have --remote flag" + fi + + CONTAINER_CONNECTION=foobar run_podman --help + # Should not have --remote flag + echo $output | grep -v -qw -- "--remote" + if [ $? -ne 0 ]; then + die "Should not have --remote flag" + fi } # Check that just calling "podman-remote" prints the usage message even |