summaryrefslogtreecommitdiff
path: root/tests/test_cloner.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2020-01-29 16:14:55 -0500
committerCole Robinson <crobinso@redhat.com>2020-01-29 18:34:38 -0500
commit140a1f3b15d47ea5d2d56bdf56d0484419023280 (patch)
tree8c78085755f4b9894435953b07d2026e3b19125e /tests/test_cloner.py
parent1e1cd4c5641989ab998444758bf2bf9f9f7011c8 (diff)
downloadvirt-manager-140a1f3b15d47ea5d2d56bdf56d0484419023280.tar.gz
cloner: Drop ability to clone a paused VM
Generally this doesn't work with qemu metadata locking nowadays, and it was never a safe idea to begin with, because disk contents could be in an inconsistent state. https://bugzilla.redhat.com/show_bug.cgi?id=1725330 Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'tests/test_cloner.py')
-rw-r--r--tests/test_cloner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cloner.py b/tests/test_cloner.py
index cad852a1..c710fd4d 100644
--- a/tests/test_cloner.py
+++ b/tests/test_cloner.py
@@ -197,7 +197,7 @@ class TestClone(unittest.TestCase):
cloner = Cloner(conn)
cloner.original_guest = "test-snapshots"
cloner.setup_original()
- self.assertTrue("paused or shutoff" in str(err.exception))
+ self.assertTrue("must be shutoff" in str(err.exception))
with self.assertRaises(ValueError) as err:
cloner = Cloner(conn)