Commit b5d34b45 authored by intrigeri's avatar intrigeri
Browse files

Test suite: only save extra debugging artifacts if we're in the Additional Software feature

I'd like to keep saving this extra debugging data for a while,
but let's minimize the impact when scenarios in other features fail.
parent bf5390d9
......@@ -302,20 +302,23 @@ After('@product') do |scenario|
# on the remote shell here:
if $vm && $vm.remote_shell_is_up?
save_journal
save_vm_command_output(
command: 'ls -lAR --full-time /var/lib/apt',
id: 'var_lib_apt',
)
save_vm_command_output(
command: 'mount',
id: 'mount',
)
save_vm_command_output(
command: 'ls -lA --full-time /live/persistence/TailsData_unlocked',
id: 'persistent_volume',
)
save_vm_file_content('/var/log/live-persist')
save_vm_file_content('/run/live-additional-software/log')
if scenario.feature.file \
== 'features/additional_software_packages.feature'
save_vm_command_output(
command: 'ls -lAR --full-time /var/lib/apt',
id: 'var_lib_apt',
)
save_vm_command_output(
command: 'mount',
id: 'mount',
)
save_vm_command_output(
command: 'ls -lA --full-time /live/persistence/TailsData_unlocked',
id: 'persistent_volume',
)
save_vm_file_content('/var/log/live-persist')
save_vm_file_content('/run/live-additional-software/log')
end
end
$failure_artifacts.sort!
$failure_artifacts.each do |desc, file|
......
Markdown is supported
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