More work on the thin_check --quiet feature
This commit is contained in:
@@ -28,3 +28,8 @@ When(/^I run thin_rmap with (.*?)$/) do |opts|
|
|||||||
run_simple("thin_rmap #{opts} #{dev_file}", false)
|
run_simple("thin_rmap #{opts} #{dev_file}", false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Then /^it should give no output$/ do
|
||||||
|
ps = only_processes.last
|
||||||
|
output = ps.stdout + ps.stderr
|
||||||
|
output.should == ""
|
||||||
|
end
|
||||||
|
@@ -77,6 +77,11 @@ Feature: thin_check
|
|||||||
Scenario: -q should give no output
|
Scenario: -q should give no output
|
||||||
Given a corrupt superblock
|
Given a corrupt superblock
|
||||||
When I run thin_check with --quiet
|
When I run thin_check with --quiet
|
||||||
Then it should fail with:
|
Then it should fail
|
||||||
"""
|
And it should give no output
|
||||||
"""
|
|
||||||
|
Scenario: --quiet should give no output
|
||||||
|
Given a corrupt superblock
|
||||||
|
When I run thin_check with --quiet
|
||||||
|
Then it should fail
|
||||||
|
And it should give no output
|
||||||
|
Reference in New Issue
Block a user