summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2016-04-13 14:04:58 +0200
committeranonym <anonym@riseup.net>2016-04-13 14:15:29 +0200
commit219740b6da36a4ded45ecea4e1fed6b0aa1b7f95 (patch)
tree2fc33b356ff870c9a2dbf40b0e76aad7bd453f47
parent124d013af73fff59653f07749e8e55b434bf5616 (diff)
Make sure we use exactly one Tails APT suite.test/8164-remaining-apt-tests
-rw-r--r--features/step_definitions/apt.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/features/step_definitions/apt.rb b/features/step_definitions/apt.rb
index c329f26..d7ea5ed 100644
--- a/features/step_definitions/apt.rb
+++ b/features/step_definitions/apt.rb
@@ -31,10 +31,13 @@ Then /^the expected Tails APT suite is used$/ do
next
end
expected_dist = cmd_helper('dpkg-parsechangelog -S Version').chomp
+ nr_sources = 0
apt_each_source('/etc/apt/sources.list.d/tails.list') do |_, host, dist, _|
assert_equal('deb.tails.boum.org', host, "Unexpected APT source host")
assert_equal(expected_dist, dist, "Unexpected APT source suite")
+ nr_sources += 1
end
+ assert_equal(1, nr_sources, "Unexpected number of Tails APT sources")
end
When /^I update APT using apt$/ do