Skip to content

Commit

Permalink
Filter empty string in comment (#466)
Browse files Browse the repository at this point in the history
The comment parser sometimes include empty string as a command line
argument, which breaks python's argparser in
[`request_pr_exp.py`](https://github.com/google/oss-fuzz-gen/blob/main/ci/request_pr_exp.py).

This PR removes empty strings from the command parsed from the comment.
  • Loading branch information
DonggeLiu authored Jul 12, 2024
1 parent 06a221d commit 02a4251
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ci/ci_trial_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def exec_command_from_github(pull_request_number):
# Set the branch so that the trial_build builds the projects from the PR
# branch.
command.extend(['-p', str(pull_request_number)])
command = [c for c in command if c]
logging.info('Command: %s.', command)
return request_pr_exp.main(command)

Expand Down

0 comments on commit 02a4251

Please sign in to comment.