From 9feb0cf7120d8097e46f9f639fb549395f27a58d Mon Sep 17 00:00:00 2001 From: hamistao Date: Mon, 9 Sep 2024 12:00:00 -0300 Subject: [PATCH] tests/container: Test container clean stop Signed-off-by: hamistao --- tests/container | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/container b/tests/container index f2d35535b..267c55fa6 100755 --- a/tests/container +++ b/tests/container @@ -147,5 +147,13 @@ lxc exec u1 -- mkdir /root/sys lxc exec u1 -- mount -t sysfs sysfs /root/sys lxc delete -f u1 + +echo "==> Try cleanly stopping a container" +lxc launch "${IMAGE}" c1 +waitInstanceBooted c1 +lxc stop c1 +lxc start c1 +waitInstanceBooted c1 + # shellcheck disable=SC2034 FAIL=0