]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Revert "teuthology/suite: set the kernel branch in the kernel config"
authorAishwarya Mathuria <amathuri@redhat.com>
Thu, 12 Jun 2025 11:50:31 +0000 (17:20 +0530)
committerAishwarya Mathuria <amathuri@redhat.com>
Thu, 12 Jun 2025 11:50:31 +0000 (17:20 +0530)
This reverts commit 5bac476685eacea5a62f470286b7af6032f2a687.

teuthology/suite/run.py

index 5fddb34892c749abe884a19ed1ab894b4e2b457c..bb7f5c2f7f3dee776c89acb8d5896f379d6cc1b3 100644 (file)
@@ -167,16 +167,13 @@ class Run(object):
         # Put together a stanza specifying the kernel hash
         if self.args.kernel_branch == 'distro':
             kernel_hash = 'distro'
-            kernel_branch = 'distro'
         # 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
-            kernel_branch = None
         else:
-            kernel_branch = self.args.kernel_branch
             kernel_hash = util.get_gitbuilder_hash(
-                'kernel', kernel_branch, 'default',
+                'kernel', self.args.kernel_branch, 'default',
                 self.args.machine_type, self.args.distro,
                 self.args.distro_version,
             )
@@ -192,7 +189,7 @@ class Run(object):
 
         if kernel_hash:
             log.info("kernel sha1: {hash}".format(hash=kernel_hash))
-            kernel_dict = dict(kernel=dict(branch=kernel_branch, kdb=kdb, sha1=kernel_hash))
+            kernel_dict = dict(kernel=dict(kdb=kdb, sha1=kernel_hash))
             if kernel_hash != 'distro':
                 kernel_dict['kernel']['flavor'] = 'default'
         else: