]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks: add support for arbitrary test params for smb workunit
authorJohn Mulligan <jmulligan@redhat.com>
Sun, 5 Jul 2026 17:29:31 +0000 (13:29 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 5 Aug 2026 16:42:36 +0000 (12:42 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
qa/tasks/smb.py

index d709a5061d2e44d5340c216d2f62f1087c3fe68d..0b5d58dc763c156c31125a71833ac4eaaf9ef6e7 100644 (file)
@@ -552,6 +552,7 @@ def workunit(ctx, config):
     _ssh_keys_config = config.get('ssh_keys', {})
     _config['enable_ssh_keys'] = _ssh_keys_config not in (False, None)
     _config['testdir'] = misc.get_testdir(ctx)
+    _config['params'] = config.get('params', {})  # freeform test parameters
     log.info('Passing workunit config: %r', _config)
     with contextlib.ExitStack() as estack:
         if _config['enable_ssh_keys']:
@@ -594,6 +595,8 @@ def write_metadata_file(ctx, config, *, roles=None):
         ]
     if config.get('testdir'):
         obj['testdir'] = config['testdir']
+    if config.get('params'):
+        obj['params'] = config['params']
     data = json.dumps(obj)
     log.debug('smb metadata: %r', obj)