-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17807 from github/tausbn/python-fix-string-encodi…
…ng-dataset-check-failure Python: Fix string encoding dataset check failure
- Loading branch information
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
python/extractor/cli-integration-test/string-encoding/repo_dir/test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"\uD800" | ||
"?" |
18 changes: 18 additions & 0 deletions
18
python/extractor/cli-integration-test/string-encoding/test.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -Eeuo pipefail # see https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | ||
|
||
set -x | ||
|
||
CODEQL=${CODEQL:-codeql} | ||
|
||
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
cd "$SCRIPTDIR" | ||
|
||
rm -rf db | ||
|
||
$CODEQL database create db --language python --source-root repo_dir/ | ||
|
||
$CODEQL dataset check db/db-python | ||
|
||
echo "Test successfully completed." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters