Merge lp:~hopem/charm-helpers/lp1257491 into lp:charm-helpers
Proposed by
Edward Hope-Morley
Status: | Merged |
---|---|
Merged at revision: | 107 |
Proposed branch: | lp:~hopem/charm-helpers/lp1257491 |
Merge into: | lp:charm-helpers |
Diff against target: |
23 lines (+3/-2) 2 files modified
charmhelpers/contrib/storage/linux/utils.py (+1/-1) tests/contrib/storage/test_linux_storage_utils.py (+2/-1) |
To merge this branch: | bzr merge lp:~hopem/charm-helpers/lp1257491 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Page | Pending | ||
Review via email: mp+198266@code.launchpad.net |
This proposal supersedes a proposal from 2013-12-09.
To post a comment you must log in.
Hi Ed
Please update the associated test as well;
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- jamespage/ src/charms/ charm-helpers/ charm-helpers/ tests/contrib/ storage/ test_linux_ storage_ utils.py" , line 15, in test_zap_disk call.assert_ called_ with([' sgdisk' , '--zap-all', '/dev/foo']) python2. 7/dist- packages/ mock.py" , line 835, in assert_called_with ['sgdisk' , '--zap-all', '/dev/foo']) ['sgdisk' , '--zap-all', '--mbrtogpt', '/dev/foo'])
FAIL: It calls sgdisk correctly to zap disk
-------
Traceback (most recent call last):
File "/home/
check_
File "/usr/lib/
raise AssertionError(msg)
AssertionError: Expected call: check_call(
Actual call: check_call(
I was also pondering whether target format should be an option (MBR or GPT) but I guess this covers 100% of use cases right now.
Ta