From: Jenkins Date: Wed, 28 Jan 2015 23:26:54 +0000 (+0000) Subject: Merge "Changed pvs separator from ':' to '|' to support names with ':'." X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=328e7e71ea0c8930a0a63b2a7fa10276884c6e48;p=openstack-build%2Fcinder-build.git Merge "Changed pvs separator from ':' to '|' to support names with ':'." --- 328e7e71ea0c8930a0a63b2a7fa10276884c6e48 diff --cc cinder/tests/brick/test_brick_lvm.py index cce74b9b2,8d8a454a2..cd8ad48cb --- a/cinder/tests/brick/test_brick_lvm.py +++ b/cinder/tests/brick/test_brick_lvm.py @@@ -126,16 -107,13 +126,16 @@@ class BrickLvmTestCase(test.TestCase) else: data = ' owi-a-' elif 'env, LC_ALL=C, pvs, --noheadings' in cmd_string: - data = " fake-vg:/dev/sda:10.00:1.00\n" - data += " fake-vg:/dev/sdb:10.00:1.00\n" - data += " fake-vg:/dev/sdc:10.00:8.99\n" - data += " fake-vg-2:/dev/sdd:10.00:9.99\n" + data = " fake-vg|/dev/sda|10.00|1.00\n" + data += " fake-vg|/dev/sdb|10.00|1.00\n" + data += " fake-vg|/dev/sdc|10.00|8.99\n" + data += " fake-vg-2|/dev/sdd|10.00|9.99\n" elif 'env, LC_ALL=C, lvs, --noheadings, --unit=g' \ ', -o, size,data_percent, --separator, :' in cmd_string: - data = " 9:12\n" + if 'test-prov-cap-pool' in cmd_string: + data = " 9.5:20\n" + else: + data = " 9:12\n" elif 'lvcreate, -T, -L, ' in cmd_string: pass elif 'lvcreate, -T, -V, ' in cmd_string: