Explorar o código

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 %!s(int64=4) %!d(string=hai) anos
pai
achega
34e2f3a322
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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?!")