summaryrefslogtreecommitdiffstats
path: root/features
diff options
context:
space:
mode:
authorCyril Brulebois <ckb@riseup.net>2019-01-13 18:00:17 +0100
committerCyril Brulebois <ckb@riseup.net>2019-01-13 19:04:29 +0100
commitb6984aec1165aa58295fc4d117a6a092cb1eb632 (patch)
tree1815d60b1ac00c615341446a3742e7bda06a8a59 /features
parent3a3b130cf1184f00d0da50c546a1855bf95655fc (diff)
Test suite: make it possible to write an old version of Tails ISO/USB image (refs: #16004).
Diffstat (limited to 'features')
-rw-r--r--features/step_definitions/untrusted_partitions.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/features/step_definitions/untrusted_partitions.rb b/features/step_definitions/untrusted_partitions.rb
index 40148a5..b4bf5d7 100644
--- a/features/step_definitions/untrusted_partitions.rb
+++ b/features/step_definitions/untrusted_partitions.rb
@@ -29,9 +29,10 @@ Given /^I create an?( (\d+) ([[:alpha:]]+))? ([[:alnum:]]+) partition( labeled "
$vm.storage.disk_mkpartfs(name, parttype, fstype, opts)
end
-Given /^I write the Tails (ISO|USB) image to disk "([^"]+)"$/ do |type, name|
+Given /^I write (|an old version of )the Tails (ISO|USB) image to disk "([^"]+)"$/ do |old, type, name|
src_disk = {
- :path => (type == 'ISO' ? TAILS_ISO : TAILS_IMG),
+ :path => (old == '' ? (type == 'ISO' ? TAILS_ISO : TAILS_IMG)
+ : (type == 'ISO' ? OLD_TAILS_ISO : OLD_TAILS_IMG)),
:opts => {
:format => "raw",
:readonly => true