Fixup some feature tests that need metadata.bin present

They were failing for the wrong reason.
This commit is contained in:
Joe Thornber
2013-09-16 13:41:55 +01:00
parent 6638f7054f
commit ea424c4134
3 changed files with 8 additions and 0 deletions

View File

@@ -7,6 +7,10 @@ Given(/^valid metadata$/) do
run_simple("thin_restore -i #{xml_file} -o #{dev_file}")
end
Given(/^the dev file metadata\.bin$/) do
run_simple("dd if=/dev/zero of=#{dev_file} bs=4k count=1024")
end
Given(/^a corrupt superblock$/) do
in_current_dir do
write_valid_xml(xml_file)