From: Zack Cerza Date: Tue, 10 Oct 2023 17:23:20 +0000 (-0600) Subject: workunit: Improve assert on client names X-Git-Tag: v19.0.0~293^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F53926%2Fhead;p=ceph.git workunit: Improve assert on client names Instead of a bare AssertionError, we can mention the problematic value. Signed-off-by: Zack Cerza --- diff --git a/qa/tasks/workunit.py b/qa/tasks/workunit.py index 92c5780f90ea..23d436fc0c5c 100644 --- a/qa/tasks/workunit.py +++ b/qa/tasks/workunit.py @@ -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