Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_runner.py
Show First 20 Lines • Show All 652 Lines • ▼ Show 20 Lines | def get_all_scripts_from_disk(test_dir, non_scripts): | ||||
""" | """ | ||||
python_files = set([t for t in os.listdir(test_dir) if t[-3:] == ".py"]) | python_files = set([t for t in os.listdir(test_dir) if t[-3:] == ".py"]) | ||||
return list(python_files - set(non_scripts)) | return list(python_files - set(non_scripts)) | ||||
def check_script_prefixes(all_scripts): | def check_script_prefixes(all_scripts): | ||||
"""Check that no more than `EXPECTED_VIOLATION_COUNT` of the | """Check that no more than `EXPECTED_VIOLATION_COUNT` of the | ||||
test scripts don't start with one of the allowed name prefixes.""" | test scripts don't start with one of the allowed name prefixes.""" | ||||
EXPECTED_VIOLATION_COUNT = 17 | EXPECTED_VIOLATION_COUNT = 16 | ||||
Fabien: That seems unrelated | |||||
# LEEWAY is provided as a transition measure, so that pull-requests | # LEEWAY is provided as a transition measure, so that pull-requests | ||||
# that introduce new tests that don't conform with the naming | # that introduce new tests that don't conform with the naming | ||||
# convention don't immediately cause the tests to fail. | # convention don't immediately cause the tests to fail. | ||||
LEEWAY = 0 | LEEWAY = 0 | ||||
good_prefixes_re = re.compile( | good_prefixes_re = re.compile( | ||||
"(abc_)?(example|feature|interface|mempool|mining|p2p|rpc|wallet|tool)_") | "(abc_)?(example|feature|interface|mempool|mining|p2p|rpc|wallet|tool)_") | ||||
▲ Show 20 Lines • Show All 213 Lines • Show Last 20 Lines |
That seems unrelated