Look in old IOU images location in order to smooth transition

Fix #141
This commit is contained in:
Julien Duponchelle committed 2015-04-07 15:25:53 +02:00
1 parent 4189089e1b
commit 1c4a059982
2 files changed
+19

No files matched your search

+9
View File
@@ -202,6 +202,15 @@ def test_path(vm, fake_iou_bin):
assert vm.path == fake_iou_bin
def test_path_12_location(vm, fake_iou_bin):
# In 1.2 users uploaded images to the images roots
# after the migration their images are inside images/IOU
# but old topologies use old path
vm.path = fake_iou_bin.replace("/IOU", "")
assert vm.path == fake_iou_bin
def test_path_relative(vm, fake_iou_bin, tmpdir):
config = Config.instance()