Skip to content

Commit

Permalink
Upload audit log when test fails with USE_APPARMOR
Browse files Browse the repository at this point in the history
To help debugging AppArmor related issues, upload audit.log during post
fail hook when USE_APPARMOR is enabled (i.e. when AppArmor rules are
enforced).

Reference: https://progress.opensuse.org/issues/155413
  • Loading branch information
baierjan committed Aug 23, 2024
1 parent 3c52a0a commit 36056cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/openQAcoretest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ sub post_fail_hook ($self) {
save_screenshot;
$self->upload_openqa_logs;
}
get_log 'cat /var/log/audit/audit.log' => 'audit.log.txt' if get_var('USE_APPARMOR');
}

# All steps belonging to core openQA functionality are 'fatal'. by default
Expand Down

0 comments on commit 36056cd

Please sign in to comment.