Commit dd0274a7 authored by intrigeri's avatar intrigeri
Browse files

Test suite: make "Scenario: The Additional Software dpkg hook notices when...

Test suite: make "Scenario: The Additional Software dpkg hook notices when persistence is locked down while installing a package" more robust

I've seen a case when this step:

    Then the Additional Software dpkg hook has been run for package "makepp" and notices the persistence is locked

… failed with a timeout waiting for the expected message to appear in the
logs, while the /run/live-additional-software/log artifact saved by the test
suite a few seconds after this timeout expired does include that message.

So, let's:

 - wait a bit longer
 - increase the delay between try_for iterations, to avoid the test suite itself
   slowing down the very thing we're waiting for (i.e. the Additional Software
   dpkg hook).
parent 43c60c05
......@@ -148,7 +148,7 @@ end
Then /^the Additional Software dpkg hook has been run for package "([^"]*)" and notices the persistence is locked$/ do |package|
asp_logs = "#{ASP_STATE_DIR}/log"
assert(!$vm.file_empty?(asp_logs))
try_for(120) do
try_for(180, delay: 2) do
$vm.execute(
"grep -E '^.*New\spackages\smanually\sinstalled:\s.*#{package}.*$' " \
"#{asp_logs}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment