This can be useful when one wants to disable kernel hash
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
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',
# 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(