Commit 263f2193 authored by Harald Sitter's avatar Harald Sitter 💤

cath errors in installer test and archive them

parent b6155e36
......@@ -13,7 +13,7 @@ cleanNode('master') {
}
} finally {
junit 'junit/*'
archiveArtifacts 'wok/testresults/*.png, wok/testresults/*.json'
archiveArtifacts 'wok/testresults/*.png, wok/testresults/*.json, wok/ulogs/*'
// sh 'rm -f wok.tar wok.tar.xz'
// sh 'tar cfJ wok.tar.xz wok'
// archiveArtifacts 'wok.tar.xz'
......
......@@ -83,6 +83,20 @@ sub test_flags {
return { important => 1 };
}
1;
sub post_fail_hook {
my ($self) = shift;
$self->SUPER::post_fail_hook;
select_console('x11');
ensure_installed 'curl';
select_console('log-console');
# vim: set sw=4 et:
# Uploads end up in wok/ulogs/
assert_script_run 'journalctl --no-pager -b 0 > /tmp/journal.txt';
upload_logs '/tmp/journal.txt';
assert_script_sudo 'tar cfJ /tmp/installer.tar.xz /var/log/installer';
upload_logs '/var/log/installer.tar.xz';
}
1;
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