The 'I shutdown Tails and wait for the computer to power off' step is racey
Originally created by @anonym on #10390 (Redmine)
Look at this:
Then /^Tails eventually restarts$/ do
nr_gibs_of_ram = (detected_ram_in_MiB.to_f/(2**10)).ceil
@screen.wait('TailsBootSplash.png', nr_gibs_of_ram*5*60)
end
Given /^I shutdown Tails and wait for the computer to power off$/ do
$vm.execute("poweroff")
step 'Tails eventually shuts down'
end
i.e. we call the remote shell while we are shutting down Tails.
Instead of asking Tails via the remote shell how much ram it has, let’s ask libvirt how much virtual RAM the machine has.