Skip to content

Commit

Permalink
tests/container: Test container clean stop
Browse files Browse the repository at this point in the history
Signed-off-by: hamistao <[email protected]>
  • Loading branch information
hamistao committed Sep 12, 2024
1 parent f706e03 commit 9feb0cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/container
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9feb0cf

Please sign in to comment.