cucumber test for thin_check --super-block-only
This commit is contained in:
		
							
								
								
									
										13
									
								
								features/step_definitions/thin_steps.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								features/step_definitions/thin_steps.rb
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
Given(/^valid metadata$/) do
 | 
			
		||||
  in_current_dir do
 | 
			
		||||
    write_valid_xml(xml_file)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  run_simple("dd if=/dev/zero of=#{dev_file} bs=4k count=1024")
 | 
			
		||||
  run_simple("thin_restore -i #{xml_file} -o #{dev_file}")
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
When(/^I run thin_check with (.*?)$/) do |opts|
 | 
			
		||||
  run "thin_check #{opts} #{dev_file}"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user