Skip to content

Commit

Permalink
Take 6
Browse files Browse the repository at this point in the history
  • Loading branch information
reneme committed Nov 1, 2024
1 parent 6ea7483 commit f7bc471
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ jobs:
- name: Fetch BoringSSL fork for BoGo tests
uses: actions/checkout@v4
with:
repository: ${{ env.BORINGSSL_FORK }}
repository: ${{ env.BORINGSSL_REPO }}
ref: ${{ env.BORINGSSL_BRANCH }}
path: ./boringssl
if: matrix.target == 'coverage' || matrix.target == 'sanitizer'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Fetch BoringSSL fork for BoGo tests
uses: actions/checkout@v4
with:
repository: ${{ env.BORINGSSL_FORK }}
repository: ${{ env.BORINGSSL_REPO }}
ref: ${{ env.BORINGSSL_BRANCH }}
path: ./boringssl

Expand Down
9 changes: 7 additions & 2 deletions src/scripts/repo_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def list_vars(cfg: RepoConfig, *_):
def get_var(cfg: RepoConfig, args):
if args.var not in cfg:
print(f'Variable "{args.var}" not found in the configuration file.', file=sys.stderr)
return 1
raise KeyError()
print(cfg[args.var])

def print_config_file_path(cfg, *_):
Expand All @@ -67,7 +67,12 @@ def print_config_file_path(cfg, *_):
parser_file.set_defaults(dispatch=print_config_file_path)

args = parser.parse_args()
return args.dispatch(RepoConfig(), args)
try:
args.dispatch(RepoConfig(), args)
except Exception:
return 1

return 0

if __name__ == '__main__':
sys.exit(main())

0 comments on commit f7bc471

Please sign in to comment.