[cache_restore] --debug-override-metadata-version

A flag that deliberately causes the wrong metadata version to be
written.  Useful for testing the kernel module.
This commit is contained in:
Joe Thornber
2013-10-15 10:24:12 +01:00
parent c92aff63e2
commit f8633da296
4 changed files with 62 additions and 16 deletions

View File

@@ -86,3 +86,9 @@ Feature: cache_check
When I run `cache_check metadata.bin`
Then it should pass
Scenario: Invalid metadata version causes a fail
Given a small xml file
And input file
And I run cache_restore with -i metadata.xml -o input --debug-override-metadata-version 12345
When I run `cache_check input`
Then it should fail