Skip to content

Commit 0fea445

Browse files
committed
Only pass arg if not empty
1 parent 104ee56 commit 0fea445

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/ci_runner.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ def run_branch_tests(conf: Dict[str, str], dir: Path, run_id: str, clone: bool =
151151
'project_name', 'account']:
152152
try:
153153
val = get_conf(conf, opt)
154-
args.append('--' + opt.replace('_', '-'))
155-
args.append(val)
154+
if val != '':
155+
args.append('--' + opt.replace('_', '-'))
156+
args.append(val)
156157
except KeyError:
157158
# sometimes options get added; when they do, they could prevent
158159
# old test cycles from working, if their configs don't contain

0 commit comments

Comments
 (0)