From: Kyr Shatskyy Date: Tue, 9 Jul 2019 13:41:57 +0000 (+0200) Subject: suite/run: add support 'none' for kernel branch parameter X-Git-Tag: 1.1.0~237^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f3b79d7f48eb9dd846409626b7b677b8cd57a17c;p=teuthology.git suite/run: add support 'none' for kernel branch parameter This can be useful when one wants to disable kernel hash Signed-off-by: Kyr Shatskyy --- diff --git a/scripts/suite.py b/scripts/suite.py index abea69d7..c3c8bf20 100644 --- a/scripts/suite.py +++ b/scripts/suite.py @@ -43,7 +43,8 @@ Standard arguments: either --ceph or --sha1, backtracking up to commits [default: 0] -k , --kernel - The kernel branch to run against + The kernel branch to run against, + use 'none' to bypass kernel task. [default: distro] -f , --flavor The kernel flavor to run against: ('basic', diff --git a/teuthology/suite/run.py b/teuthology/suite/run.py index 09b23212..2921ab44 100644 --- a/teuthology/suite/run.py +++ b/teuthology/suite/run.py @@ -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(