[*_restore] Add progress bar to cache_restore and era_restore.
A lot of refactoring common code between the restore tools.
This commit is contained in:
@@ -18,6 +18,7 @@ Feature: thin_restore
|
||||
{-h|--help}
|
||||
{-i|--input} <input xml file>
|
||||
{-o|--output} <output device or file>
|
||||
{-q|--quiet}
|
||||
{-V|--version}
|
||||
|
||||
{--debug-override-metadata-version} <integer>
|
||||
@@ -36,6 +37,7 @@ Feature: thin_restore
|
||||
{-h|--help}
|
||||
{-i|--input} <input xml file>
|
||||
{-o|--output} <output device or file>
|
||||
{-q|--quiet}
|
||||
{-V|--version}
|
||||
|
||||
{--debug-override-metadata-version} <integer>
|
||||
@@ -80,3 +82,18 @@ Feature: thin_restore
|
||||
And an empty dev file
|
||||
When I run cache_restore with -i metadata.xml -o metadata.bin --omit-clean-shutdown
|
||||
Then it should pass
|
||||
|
||||
Scenario: --quiet is accepted
|
||||
Given valid metadata
|
||||
When I run thin_restore with -i metadata.xml -o metadata.bin --quiet
|
||||
Then it should pass with:
|
||||
"""
|
||||
"""
|
||||
|
||||
Scenario: -q is accepted
|
||||
Given valid metadata
|
||||
When I run thin_restore with -i metadata.xml -o metadata.bin -q
|
||||
Then it should pass with:
|
||||
"""
|
||||
"""
|
||||
|
||||
|
@@ -18,6 +18,7 @@ Feature: thin_restore
|
||||
{-h|--help}
|
||||
{-i|--input} <input xml file>
|
||||
{-o|--output} <output device or file>
|
||||
{-q|--quiet}
|
||||
{-V|--version}
|
||||
|
||||
"""
|
||||
@@ -33,6 +34,7 @@ Feature: thin_restore
|
||||
{-h|--help}
|
||||
{-i|--input} <input xml file>
|
||||
{-o|--output} <output device or file>
|
||||
{-q|--quiet}
|
||||
{-V|--version}
|
||||
|
||||
"""
|
||||
@@ -63,4 +65,18 @@ Feature: thin_restore
|
||||
When I run era_restore with -i metadata.xml -o metadata.bin
|
||||
Then it should pass
|
||||
And the metadata should be valid
|
||||
|
||||
|
||||
Scenario: --quiet is accepted
|
||||
Given valid metadata
|
||||
When I run thin_restore with -i metadata.xml -o metadata.bin --quiet
|
||||
Then it should pass with:
|
||||
"""
|
||||
"""
|
||||
|
||||
Scenario: -q is accepted
|
||||
Given valid metadata
|
||||
When I run thin_restore with -i metadata.xml -o metadata.bin -q
|
||||
Then it should pass with:
|
||||
"""
|
||||
"""
|
||||
|
||||
|
@@ -55,6 +55,20 @@ Feature: thin_restore
|
||||
No output file provided.
|
||||
"""
|
||||
|
||||
Scenario: --quiet is accepted
|
||||
Given valid metadata
|
||||
When I run thin_restore with -i metadata.xml -o metadata.bin --quiet
|
||||
Then it should pass with:
|
||||
"""
|
||||
"""
|
||||
|
||||
Scenario: -q is accepted
|
||||
Given valid metadata
|
||||
When I run thin_restore with -i metadata.xml -o metadata.bin -q
|
||||
Then it should pass with:
|
||||
"""
|
||||
"""
|
||||
|
||||
Scenario: dump/restore is a noop
|
||||
Given valid metadata
|
||||
When I dump
|
||||
|
Reference in New Issue
Block a user