cmd/podman: completion for --sysctl in create/run

Signed-off-by: Celso Henrique Souza Silva <celsohenrique367@gmail.com>
This commit is contained in:
nothiaki
2025-09-19 16:05:23 -03:00
committed by Celso Henrique Souza Silva
parent 1671029517
commit f0f05e22c6
3 changed files with 46 additions and 2 deletions

View File

@ -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
}