summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-07-13 10:53:50 -0400
committerMatthew Heon <matthew.heon@pm.me>2022-07-26 13:15:45 -0400
commita4bae330a5bc76219598ffb25db7331705ff1cdd (patch)
tree0770259fbcfccedd27b655920b7fef8dec032b65 /test
parentd560c789766f9c446c4d222fc5a0e92d86e207e1 (diff)
downloadpodman-a4bae330a5bc76219598ffb25db7331705ff1cdd.tar.gz
podman-a4bae330a5bc76219598ffb25db7331705ff1cdd.tar.bz2
podman-a4bae330a5bc76219598ffb25db7331705ff1cdd.zip
Add podman events -f to be alias for --filter
Needed for Docker compatibility. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/system/090-events.bats4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/system/090-events.bats b/test/system/090-events.bats
index 128802360..ceb53ae73 100644
--- a/test/system/090-events.bats
+++ b/test/system/090-events.bats
@@ -13,11 +13,11 @@ load helpers
run_podman run --label $labelname=$labelvalue --name $cname --rm $IMAGE ls
expect=".* container start [0-9a-f]\+ (image=$IMAGE, name=$cname,.* ${labelname}=${labelvalue}"
- run_podman events --filter type=container --filter container=$cname --filter label=${labelname}=${labelvalue} --filter event=start --stream=false
+ run_podman events --filter type=container -f container=$cname --filter label=${labelname}=${labelvalue} --filter event=start --stream=false
is "$output" "$expect" "filtering by container name and label"
# Same thing, but without the container-name filter
- run_podman events --filter type=container --filter label=${labelname}=${labelvalue} --filter event=start --stream=false
+ run_podman events -f type=container --filter label=${labelname}=${labelvalue} --filter event=start --stream=false
is "$output" "$expect" "filtering just by label"
# Now filter just by container name, no label