Skip to content

Commit

Permalink
lib/kdump_utils: Use usrmerged location of vmlinux on Tumbleweed
Browse files Browse the repository at this point in the history
  • Loading branch information
Vogtinator committed Sep 10, 2021
1 parent 7baf4f0 commit 7d5299a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/kdump_utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ sub check_function {
if ($args{test_type} eq 'function') {
# Check, that vmcore exists, otherwise fail
assert_script_run('ls -lah /var/crash/*/vmcore');
my $crash_cmd = "echo exit | crash `ls -1t /var/crash/*/vmcore | head -n1` /boot/vmlinux-`uname -r`*";
my $vmlinux = (is_sle("<16") || is_leap("<16.0")) ? '/boot/vmlinux-`uname -r`*' : '/usr/lib/modules/$(uname -r)/vmlinux*';
my $crash_cmd = "echo exit | crash `ls -1t /var/crash/*/vmcore | head -n1` $vmlinux";
validate_script_output "$crash_cmd", sub { m/PANIC:\s([^\s]+)/ }, 600;
}
else {
Expand Down

0 comments on commit 7d5299a

Please sign in to comment.