utils: kata-manager: Make test container name more unique

Rather than creating a container called `test-kata`, prefix with the
script name to make it a bit "more unique" and less likely for users to
have an existing container with the test container name. The new test
container name is `kata-manager-sh-test-kata`.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2023-11-10 09:18:00 +00:00
parent 436d7d1275
commit 9969f5a94a

View File

@ -765,7 +765,7 @@ test_installation()
local image="docker.io/library/busybox:latest"
sudo $tool image pull "$image"
local container_name="test-kata"
local container_name="${script_name/./-}-test-kata"
# Used to prove that the kernel in the container
# is different to the host kernel.