From 7a1c721943b589573f97c6ae7508a830cade1f67 Mon Sep 17 00:00:00 2001 From: Jeroen Ketema <93738568+jketema@users.noreply.github.com> Date: Wed, 18 Nov 2026 14:13:39 +0000 Subject: [PATCH] Python: Remove `cli-integration-test` left-overs --- .../extractor/cli-integration-test/.gitignore | 7 ------- .../extractor/cli-integration-test/README.md | 21 ------------------- .../cli-integration-test/run-all-tests.sh | 4 ---- python/extractor/pytest.ini | 1 - 4 files changed, 33 deletions(-) delete mode 100644 python/extractor/cli-integration-test/.gitignore delete mode 100644 python/extractor/cli-integration-test/README.md delete mode 100755 python/extractor/cli-integration-test/run-all-tests.sh diff --git a/python/extractor/cli-integration-test/.gitignore b/python/extractor/cli-integration-test/.gitignore deleted file mode 100644 index 9c021a4450e4..000000000000 --- a/python/extractor/cli-integration-test/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -*/db/ -*/dbs/ -*/venv/ -**/*.egg-info/ -*/.cache -**/trap/ -**/*.testproj/ \ No newline at end of file diff --git a/python/extractor/cli-integration-test/README.md b/python/extractor/cli-integration-test/README.md deleted file mode 100644 index 4da21247ebc3..000000000000 --- a/python/extractor/cli-integration-test/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# Extractor Python CodeQL CLI integration tests - -To ensure that the two work together as intended, and as an easy way to set up realistic test-cases. - - -### Adding a new test case - -Add a new folder, place a file called `test.sh` in it, which should start with the code below. The script should exit with failure code to fail the test. - -```bash -#!/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" -``` diff --git a/python/extractor/cli-integration-test/run-all-tests.sh b/python/extractor/cli-integration-test/run-all-tests.sh deleted file mode 100755 index be1e34af6af3..000000000000 --- a/python/extractor/cli-integration-test/run-all-tests.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -# All tests have moved to python/ql/integration-tests and are run by pytest. -exit 0 diff --git a/python/extractor/pytest.ini b/python/extractor/pytest.ini index 632ca92b9a15..ba9144de9480 100644 --- a/python/extractor/pytest.ini +++ b/python/extractor/pytest.ini @@ -1,5 +1,4 @@ [pytest] -addopts = --ignore=cli-integration-test/ testpaths = tests filterwarnings = ; see https://docs.python.org/3/library/warnings.html#the-warnings-filter