]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
workunit: Improve assert on client names 53926/head
authorZack Cerza <zack@redhat.com>
Tue, 10 Oct 2023 17:23:20 +0000 (11:23 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 10 Oct 2023 17:23:20 +0000 (11:23 -0600)
Instead of a bare AssertionError, we can mention the problematic value.

Signed-off-by: Zack Cerza <zack@redhat.com>
qa/tasks/workunit.py

index 92c5780f90ea09a7c0cb7c7f8846a3ad8ee9808c..23d436fc0c5c7a58648bfe8b6c4bf71bb2d8d642 100644 (file)
@@ -116,7 +116,7 @@ def task(ctx, config):
         if role == "all":
             continue
 
-        assert 'client' in role
+        assert 'client' in role, f"unexpected client name: {role}"
         created_mnt_dir = _make_scratch_dir(ctx, role, config.get('subdir'))
         created_mountpoint[role] = created_mnt_dir