Kernel release candidate version strings seem to not be working
correctly with python's version.parse() function. Split the string
retrieved with os.uname().release using '-' as delimiter and pass
only the first part - 'major.minor.release' - to version.parse().
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
self.join()
def check_kernel(major, minor, release):
- current = os.uname().release
+ current = os.uname().release.split('-')[0]
required = '{}.{}.{}'.format(major, minor, release)
if version.parse(current) < version.parse(required):
raise NotImplementedError(