summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbertagaz <bertagaz@ptitcanardnoir.org>2018-11-09 13:51:46 +0100
committerbertagaz <bertagaz@ptitcanardnoir.org>2018-11-09 13:53:58 +0100
commit703604b54e81dcae5f90cbec77ecb9f01d945853 (patch)
treea5fe3a748193c11d847ee674e4d920c2b8c4c2ac
parent2b20b5f7a87d042e4847c68c25571340efabf420 (diff)
Test suite: bump timeout for package installation and removal.
Recent tests show that it no takes a bit more time, probably because of ASP coming into play. Refs: #14596
-rw-r--r--features/step_definitions/apt.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/features/step_definitions/apt.rb b/features/step_definitions/apt.rb
index 31093a7..5d466fe 100644
--- a/features/step_definitions/apt.rb
+++ b/features/step_definitions/apt.rb
@@ -57,12 +57,12 @@ Then /^I install "(.+)" using apt$/ do |package|
$vm.execute("apt purge #{package}")
end
retry_tor(recovery_proc) do
- Timeout::timeout(2*60) do
+ Timeout::timeout(3*60) do
$vm.execute("echo #{@sudo_password} | " +
"sudo -S DEBIAN_PRIORITY=critical apt -y install #{package}",
:user => LIVE_USER,
:spawn => true)
- try_for(60) do
+ try_for(2*60) do
$vm.execute_successfully("dpkg -s '#{package}' 2>/dev/null | grep -qs '^Status:.*installed$'")
end
end
@@ -74,7 +74,7 @@ Then /^I uninstall "(.+)" using apt$/ do |package|
"sudo -S apt -y remove #{package}",
:user => LIVE_USER,
:spawn => true)
- try_for(60) do
+ try_for(2*60) do
$vm.execute_successfully("dpkg -s '#{package}' 2>/dev/null | grep -qs '^Status:.*deinstall[[:space:]].*$'")
end
end