summaryrefslogtreecommitdiffstats
path: root/features
diff options
context:
space:
mode:
Diffstat (limited to 'features')
-rw-r--r--features/step_definitions/common_steps.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index 3fdee9c..572cd1a 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -953,8 +953,12 @@ Given /^Tails is fooled to think it is running version (.+)$/ do |version|
)
end
+def running_tails_version
+ $vm.execute_successfully('tails-version').stdout.split.first
+end
+
Then /^Tails is running version (.+)$/ do |version|
- v1 = $vm.execute_successfully('tails-version').stdout.split.first
+ v1 = running_tails_version
assert_equal(version, v1, "The version doesn't match tails-version's output")
v2 = $vm.file_content('/etc/os-release')
.scan(/TAILS_VERSION_ID="(#{version})"/).flatten.first