mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-13 11:22:01 +00:00
Add --keep-duplicates CLI argument to bypass deduplication and forward to pytest, allowing duplicate test file arguments to be collected multiple times. Move RUN_ID assignment from pytest_collect_file to modify_pytest_item. All File collectors for the same source file share a single run_ids dict (via RUN_ID_CACHE stash key), so items from duplicate collection arguments (e.g. with --keep-duplicates) automatically get unique IDs. Remove CppFile.run_id cached_property — CppTestCase now reads RUN_ID from its own item stash, which is set during modify_pytest_item. Fix --repeat option default from string "1" to int 1 — argparse only applies type= to CLI-parsed values, not defaults. Co-Authored-By: Claude Opus 4.6 (200K context) <noreply@anthropic.com>