diff --git a/test/runner/lib/delegation.py b/test/runner/lib/delegation.py index 1f0ddabafd..a5de0e0332 100644 --- a/test/runner/lib/delegation.py +++ b/test/runner/lib/delegation.py @@ -451,6 +451,7 @@ def filter_options(args, argv, options, exclude, require): yield '--require' yield target - if args.metadata_path: - yield '--metadata' - yield args.metadata_path + if isinstance(args, TestConfig): + if args.metadata_path: + yield '--metadata' + yield args.metadata_path