tests: fix getting kernel package version inside VM

Use `sort -V` instead of `sort -n`.
This commit is contained in:
Marek Marczykowski-Górecki 2018-04-13 21:44:44 +02:00
parent 69f19bb7bb
commit 4794232745
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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 = \