summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortekireeva <[email protected]>2023-06-14 20:38:57 +0300
committertekireeva <[email protected]>2023-06-14 20:38:57 +0300
commit451935d7916867193e3e2a663b1f932beebfeda4 (patch)
tree644e3cf92f0e043ef2ae7a9f5667c2ffedffa8a5
parent8c472aa5476a88414736a1a6658154aebce1ff66 (diff)
Call data macro before getting test data
-rw-r--r--build/plugins/ytest.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/build/plugins/ytest.py b/build/plugins/ytest.py
index c5fc0ec5be2..796041b2cbc 100644
--- a/build/plugins/ytest.py
+++ b/build/plugins/ytest.py
@@ -440,15 +440,16 @@ def onadd_ytest(unit, *args):
if is_implicit_data_needed and unit.get('ADD_SRCDIR_TO_TEST_DATA') == "yes":
unit.ondata_files(_common.get_norm_unit_path(unit))
+ if flat_args[1] == "fuzz.test":
+ unit.ondata("arcadia/fuzzing/{}/corpus.json".format(_common.get_norm_unit_path(unit)))
+
test_data = sorted(
_common.filter_out_by_keyword(
spec_args.get('DATA', []) + get_norm_paths(unit, 'TEST_DATA_VALUE'), 'AUTOUPDATED'
)
)
- if flat_args[1] == "fuzz.test":
- unit.ondata("arcadia/fuzzing/{}/corpus.json".format(_common.get_norm_unit_path(unit)))
- elif flat_args[1] == "go.test":
+ if flat_args[1] == "go.test":
data, _ = get_canonical_test_resources(unit)
test_data += data
elif flat_args[1] == "coverage.extractor" and not match_coverage_extractor_requirements(unit):