tests: fix getting kernel package version inside VM
Use `sort -V` instead of `sort -n`.
This commit is contained in:
parent
69f19bb7bb
commit
4794232745
@ -67,7 +67,7 @@ class TC_40_PVGrub(object):
|
||||
|
||||
def get_kernel_version(self, vm):
|
||||
if self.template.startswith('fedora-'):
|
||||
cmd_get_kernel_version = 'rpm -q kernel-core|sort -n|tail -1|' \
|
||||
cmd_get_kernel_version = 'rpm -q kernel-core|sort -V|tail -1|' \
|
||||
'cut -d - -f 3-'
|
||||
elif self.template.startswith('debian-'):
|
||||
cmd_get_kernel_version = \
|
||||
|
Loading…
Reference in New Issue
Block a user