From 042e387f27c4c8be67ad58fd01dcf3255a78a21d Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 20 Mar 2017 15:31:57 -0700 Subject: [PATCH] Fix metadata handling for shell command. (#22801) --- test/runner/lib/delegation.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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