From 64d6a91cd6642d50ac9e5a969d971f6157d962bf Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 10 Oct 2023 11:23:20 -0600 Subject: [PATCH] workunit: Improve assert on client names Instead of a bare AssertionError, we can mention the problematic value. Signed-off-by: Zack Cerza --- qa/tasks/workunit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/tasks/workunit.py b/qa/tasks/workunit.py index 92c5780f90ea0..23d436fc0c5c7 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 -- 2.39.5