Browse Source

tests: fix sorting kernel version

Debian now has 4.9 and 4.19 kernels installed, so `sort -n` sorts them
wrong.
Marek Marczykowski-Górecki 4 years ago
parent
commit
34e2f3a322
1 changed files with 1 additions and 1 deletions
  1. 1 1
      qubes/tests/integ/grub.py

+ 1 - 1
qubes/tests/integ/grub.py

@@ -72,7 +72,7 @@ class GrubBase(object):
         elif self.template.startswith('debian-'):
             cmd_get_kernel_version = \
                 'dpkg-query --showformat=\'${Package}\\n\' --show ' \
-                '\'linux-image-*-amd64\'|sort -n|tail -1|cut -d - -f 3-'
+                '\'linux-image-*-amd64\'|sort -V|tail -1|cut -d - -f 3-'
         else:
             raise RuntimeError("Unsupported template?!")