Skip to content

Commit

Permalink
Merge pull request #13237 from Vogtinator/twdump
Browse files Browse the repository at this point in the history
lib/kdump_utils: Use usrmerged location of vmlinux on Tumbleweed
  • Loading branch information
czerw committed Sep 13, 2021
2 parents bd7de80 + a04f2c3 commit 6fa6f9b
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 6fa6f9b

Please sign in to comment.