[features] check that quiet mode really outputs nothing.

Previously it was checking the output contained a null string within it.
This commit is contained in:
Joe Thornber
2014-08-28 14:00:08 +01:00
parent 0608df97d8
commit 5a6b92312e
6 changed files with 15 additions and 9 deletions

View File

@@ -32,8 +32,8 @@ end
Given(/^valid era metadata$/) do
in_current_dir do
system("era_xml create --nr-blocks 100 --nr-writesets 2 --current-era 1000 > #{xml_file}")
system("dd if=/dev/zero of=#{dev_file} bs=4k count=1024 > /dev/null")
end
run_simple("dd if=/dev/zero of=#{dev_file} bs=4k count=1024")
run_simple("era_restore -i #{xml_file} -o #{dev_file}")
end