fix coverage generation

pull/1300/head
Gulshan Singh 3 years ago
parent f0ea79575d
commit eb18b04e54

@ -12,6 +12,9 @@ extend_skip_glob = ["gdb-pt-dump/*"]
branch = true branch = true
parallel = true parallel = true
disable_warnings = ["module-not-imported"] disable_warnings = ["module-not-imported"]
source = ["."] source = ["${SRC_DIR-.}"]
omit = ["ida_script.py"] omit = ["ida_script.py"]
data_file = ".cov/coverage" data_file = ".cov/coverage"
[tool.coverage.report]
omit = ["ida_script.py", "tests/*"]

@ -68,7 +68,8 @@ tests_failed=0
for test_case in ${TESTS_LIST}; do for test_case in ${TESTS_LIST}; do
gdb_args=(-ex 'py import coverage;coverage.process_startup()' --command $GDB_INIT_PATH --command pytests_launcher.py) gdb_args=(-ex 'py import coverage;coverage.process_startup()' --command $GDB_INIT_PATH --command pytests_launcher.py)
COVERAGE_FILE=$ROOT_DIR/.cov/coverage \ SRC_DIR=$ROOT_DIR \
COVERAGE_FILE=$ROOT_DIR/.cov/coverage \
COVERAGE_PROCESS_START=$COVERAGERC_PATH \ COVERAGE_PROCESS_START=$COVERAGERC_PATH \
USE_PDB="${USE_PDB}" \ USE_PDB="${USE_PDB}" \
PWNDBG_LAUNCH_TEST="${test_case}" \ PWNDBG_LAUNCH_TEST="${test_case}" \

Loading…
Cancel
Save