Extract environment setup and exception checking boilerplate logic · gitpython-developers/GitPython@2e9c239 · GitHub
Skip to content

Commit 2e9c239

Browse files
committed
Extract environment setup and exception checking boilerplate logic
Changes: - Simplify exception handling in test harnesses via `handle_exception(e)` in the `except Exception as e:` block. - `setup_git_environment` is a step towards centralizing environment variable and logging configuration set up consistently across different fuzzing scripts. **Only applying it to a single test for now is an intentional choice in case it fails to work in the ClusterFuzz environment!** If it proves successful, a follow-up change set will be welcome.
1 parent 799b9ca commit 2e9c239

2 files changed

Lines changed: 95 additions & 62 deletions

File tree

fuzzing/fuzz-targets/fuzz_submodule.py

Lines changed: 9 additions & 61 deletions

fuzzing/fuzz-targets/utils.py

Lines changed: 86 additions & 1 deletion

0 commit comments

Comments
 (0)