From a5e49d9668f430d8b7a8b1619fb2bf6c9087fed7 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 22 Dec 2021 06:20:21 -0500 Subject: Warn on use of --kernel-memory It has been deprecated and is no longer supported. Fully remove it and only print a warning if a user uses it. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2011695 Signed-off-by: Daniel J Walsh --- test/system/030-run.bats | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/system') diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 55514305b..c0b61b613 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -766,4 +766,10 @@ EOF is "$output" "1.2.3.4 foo.com.*" "users can add hosts even without /etc/hosts" } +@test "podman run --kernel-memory warning" { + # Not sure what situations this fails in, but want to make sure warning shows. + run_podman '?' run --rm --kernel-memory 100 $IMAGE false + is "$output" ".*The --kernel-memory flag is no longer supported. This flag is a noop." "warn on use of --kernel-memory" + +} # vim: filetype=sh -- cgit v1.2.3-54-g00ecf