mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Python: Copy Python extractor to codeql repo
This commit is contained in:
@@ -0,0 +1 @@
|
||||
print(42)
|
||||
18
python/extractor/cli-integration-test/stdout-encoding/test.sh
Executable file
18
python/extractor/cli-integration-test/stdout-encoding/test.sh
Executable file
@@ -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
|
||||
|
||||
# even with default encoding that doesn't support utf-8 (like on windows) we want to
|
||||
# ensure that we can properly log that we've extracted files whose filenames contain
|
||||
# utf-8 chars
|
||||
export PYTHONIOENCODING="ascii"
|
||||
$CODEQL database create db --language python --source-root repo_dir/
|
||||
Reference in New Issue
Block a user