summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2019-03-05 10:49:25 +0000
committerintrigeri <intrigeri@boum.org>2019-03-05 10:49:25 +0000
commitcd787cbf69bac37b54c0d3ed7e63d7bba225c891 (patch)
tree65b60528d1ecd67034ccdd0fc6fc5a5135c6abc8
parentdd27a9201c1a2e8bd5f9a7cdccc26dea9eaf0cad (diff)
Test suite: use here-document for readability (refs: #14596)
-rw-r--r--features/step_definitions/apt.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/features/step_definitions/apt.rb b/features/step_definitions/apt.rb
index f84e8b2..15007ba 100644
--- a/features/step_definitions/apt.rb
+++ b/features/step_definitions/apt.rb
@@ -93,9 +93,11 @@ end
When /^I configure APT to prefer an old version of cowsay$/ do
apt_source = 'deb tor+http://deb.tails.boum.org/ asp-test-upgrade-cowsay main'
- apt_pref = 'Package: cowsay
+ apt_pref = <<-EOF
+Package: cowsay
Pin: release o=Tails,a=asp-test-upgrade-cowsay
-Pin-Priority: 999'
+Pin-Priority: 999
+ EOF
$vm.file_overwrite('/etc/apt/sources.list.d/asp-test-upgrade-cowsay.list', apt_source)
$vm.file_overwrite('/etc/apt/preferences.d/asp-test-upgrade-cowsay', apt_pref)
end