Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit27de867

Browse files
committed
Fix buggygit grep pathspec args
To ensure that all necessary files are included in theexplicit-exceptions-list.txt file and unwanted files and directories arenot.
1 parent2e9c239 commit27de867

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ create_seed_corpora_zips "$WORK/qa-assets/gitpython/corpora"
9292
prepare_dictionaries_for_fuzz_targets"$WORK/qa-assets/gitpython/dictionaries""$SRC/gitpython/fuzzing"
9393

9494
pushd"$SRC/gitpython/"
95-
# Search for 'raise' and 'assert' statements in Python files within GitPython's'git/' directory anditssubmodules,
96-
#remove trailing colons,andsaveto 'explicit-exceptions-list.txt'. This file can then be used by fuzz harnesses to
97-
# check exception tracebacks:
98-
#If an exception found by the fuzzer originated in a file + line number in explicit-exceptions-list.txt, then it is not a bug.
95+
# Search for 'raise' and 'assert' statements in Python files within GitPython'ssource code and submodules, saving the
96+
#matched file path, line number,andline contenttoa file named'explicit-exceptions-list.txt'.
97+
#This file can then be used by fuzz harnesses tocheck exception tracebacks and filter out explicitly raised or otherwise
98+
#anticipatedexceptions to reduce false positive test failures.
9999

100-
git grep -n --recurse-submodules -e'\braise\b' -e'\bassert\b' --"git/**/*.py">"$SRC/explicit-exceptions-list.txt"
100+
git grep -n --recurse-submodules -e'\braise\b' -e'\bassert\b' --'*.py' --':!setup.py' --':!test/**' --':!fuzzing/**'>"$SRC/explicit-exceptions-list.txt"
101101

102102
popd
103103

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp