Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh udev rules for 15-SP3 #19937

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/security/swtpm/tpm_selftest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use testapi;
use serial_terminal 'select_serial_terminal';
use utils qw(zypper_call systemctl package_upgrade_check);
use Utils::Architectures;
use version_utils 'is_sle';

sub run {
select_serial_terminal;
Expand All @@ -29,6 +30,8 @@ sub run {
# Based on bsc#1193350, swtpm 1.2 device is not supported
# on arch64 platform any more, so skip the test on aarch64
if (!is_aarch64) {
assert_script_run('udevadm control --reload-rules && udevadm trigger') if (is_sle '<15-SP4');

# Make sure tpm device can be created
assert_script_run('ls -l /dev/tpm*');

Expand All @@ -46,6 +49,8 @@ sub run {
sub post_fail_hook {
script_run('dmesg > /var/tmp/dmesg.txt');
upload_logs('/var/tmp/dmesg.txt');
script_run('journalctl -x --no-pager | gzip -9 > /var/tmp/journal_log.txt.gz');
upload_logs('/var/tmp/journal_log.txt.gz');
}

1;
Loading