[cache_check] Errors weren't being propagated up to the exit code

This commit is contained in:
Joe Thornber
2013-10-04 16:08:31 +01:00
parent ce8e19fa75
commit fd7c539a58
2 changed files with 7 additions and 23 deletions

View File

@@ -56,25 +56,18 @@ Feature: cache_check
Scenario: Metadata file exists, but can't be opened
Given input without read permissions
When I run `cache_check input`
Then it should fail
And the stderr should contain:
"""
input: Permission denied
Permission denied
"""
Scenario: Metadata file full of zeroes
Given input file
And block 1 is zeroed
When I run `cache_check input`
And the stderr should contain:
"""
input: No superblock found
"""
Then it should fail
Scenario: A valid metadata area passes
Given metadata containing:
@@ -82,5 +75,5 @@ Feature: cache_check
"""
When I run cache_check
Then it should pass
Then it should pass