[lxc-devel] [lxd/master] test: kill and restart
brauner on Github
lxc-bot at linuxcontainers.org
Tue May 16 12:32:57 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170516/590f2f5f/attachment.bin>
-------------- next part --------------
From 6c5e79229490fa5c2ebbce904fd73d8e346c6767 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Tue, 16 May 2017 14:31:46 +0200
Subject: [PATCH] test: kill and restart
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
test/suites/storage.sh | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
diff --git a/test/suites/storage.sh b/test/suites/storage.sh
index 5f4a069..32d5fdc 100644
--- a/test/suites/storage.sh
+++ b/test/suites/storage.sh
@@ -701,24 +701,33 @@ test_storage() {
if [ "$lxd_backend" != "dir" ]; then
lxc launch testimage quota1
lxc profile device set default root size "${QUOTA1}"
- lxc restart quota1
+ lxc stop -f quota1
+ lxc start quota1
lxc launch testimage quota2
- lxc restart quota2
+ lxc stop -f quota2
+ lxc start quota2
lxc init testimage quota3
+ lxc stop -f quota3
lxc start quota3
lxc profile device set default root size "${QUOTA2}"
- lxc restart quota1
- lxc restart quota2
- lxc restart quota3
+ lxc stop -f quota1
+ lxc start quota1
+ lxc stop -f quota2
+ lxc start quota2
+ lxc stop -f quota3
+ lxc start quota3
lxc profile device unset default root size
- lxc restart quota1
- lxc restart quota2
- lxc restart quota3
+ lxc stop -f quota1
+ lxc start quota1
+ lxc stop -f quota2
+ lxc start quota2
+ lxc stop -f quota3
+ lxc start quota3
lxc delete -f quota1
lxc delete -f quota2
More information about the lxc-devel
mailing list