]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
suite/run: add support 'none' for kernel branch parameter 1299/head
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Tue, 9 Jul 2019 13:41:57 +0000 (15:41 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Wed, 10 Jul 2019 11:40:13 +0000 (13:40 +0200)
This can be useful when one wants to disable kernel hash

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
scripts/suite.py
teuthology/suite/run.py

index abea69d708c9dafd46a1e8957b60b64e7f2fdc84..c3c8bf20733b420a2569ff6ffbb30606fe356b4d 100644 (file)
@@ -43,7 +43,8 @@ Standard arguments:
                               either --ceph or --sha1, backtracking
                               up to <newest> commits [default: 0]
   -k <kernel>, --kernel <kernel>
-                              The kernel branch to run against
+                              The kernel branch to run against,
+                              use 'none' to bypass kernel task.
                               [default: distro]
   -f <flavor>, --flavor <flavor>
                               The kernel flavor to run against: ('basic',
index 09b232123f55cfe01864d629dade6f961da1981c..2921ab447240e02a7b6a82342b22b09c483d31d0 100644 (file)
@@ -119,8 +119,9 @@ class Run(object):
         # Put together a stanza specifying the kernel hash
         if self.args.kernel_branch == 'distro':
             kernel_hash = 'distro'
-        # Skip the stanza if no -k given
-        elif self.args.kernel_branch is None:
+        # Skip the stanza if '-k none' is given
+        elif self.args.kernel_branch is None or \
+             self.args.kernel_branch.lower() == 'none':
             kernel_hash = None
         else:
             kernel_hash = util.get_gitbuilder_hash(