mirror of
https://github.com/containers/podman.git
synced 2025-10-13 01:06:10 +08:00
cmd/podman: completion for --sysctl in create/run
Signed-off-by: Celso Henrique Souza Silva <celsohenrique367@gmail.com>
This commit is contained in:

committed by
Celso Henrique Souza Silva

parent
1671029517
commit
f0f05e22c6
@ -410,3 +410,15 @@ function _check_no_suggestions() {
|
||||
# cleanup container
|
||||
run_podman rm $ctrname
|
||||
}
|
||||
|
||||
# bats test_tags=ci:parallel
|
||||
@test "podman run --sysctl completion for sysctl" {
|
||||
skip_if_remote "sysctl option not working via remote"
|
||||
|
||||
run_completion run --sysctl net.
|
||||
|
||||
assert "$output" =~ "^net\." \
|
||||
"Only suggestions with 'net.' should be present for podman run --sysctl net."
|
||||
|
||||
_check_completion_end NoFileComp
|
||||
}
|
||||
|
Reference in New Issue
Block a user