@@ -632,6 +632,7 @@ def ktlint(unit, *args):
632
632
# TODO remove FILES, see DEVTOOLS-7052
633
633
'FILES' : serialized_test_files ,
634
634
'TEST-FILES' : serialized_test_files ,
635
+ 'MODULE_LANG' : consts .ModuleLang .KOTLIN ,
635
636
}
636
637
test_record .update (extra_test_dart_data )
637
638
@@ -698,6 +699,7 @@ def java_style(unit, *args):
698
699
'TEST-FILES' : serialized_test_files ,
699
700
'JDK_LATEST_VERSION' : unit .get ('JDK_LATEST_VERSION' ),
700
701
'JDK_RESOURCE' : 'JDK' + (unit .get ('JDK_VERSION' ) or unit .get ('JDK_REAL_VERSION' ) or '_DEFAULT' ),
702
+ 'MODULE_LANG' : consts .ModuleLang .JAVA ,
701
703
}
702
704
703
705
data = dump_test (unit , test_record )
@@ -744,6 +746,7 @@ def gofmt(unit, *args):
744
746
# TODO remove FILES, see DEVTOOLS-7052
745
747
'FILES' : serialized_test_files ,
746
748
'TEST-FILES' : serialized_test_files ,
749
+ 'MODULE_LANG' : consts .ModuleLang .GO ,
747
750
}
748
751
749
752
data = dump_test (unit , test_record )
@@ -785,6 +788,7 @@ def govet(unit, *args):
785
788
# TODO remove FILES, see DEVTOOLS-7052
786
789
'FILES' : serialized_test_files ,
787
790
'TEST-FILES' : serialized_test_files ,
791
+ 'MODULE_LANG' : consts .ModuleLang .GO ,
788
792
}
789
793
790
794
data = dump_test (unit , test_record )
@@ -855,6 +859,7 @@ def onadd_check_py_imports(unit, *args):
855
859
# TODO remove FILES, see DEVTOOLS-7052
856
860
'FILES' : test_files ,
857
861
'TEST-FILES' : test_files ,
862
+ 'MODULE_LANG' : consts .ModuleLang .PY ,
858
863
}
859
864
if unit .get ('NO_CHECK_IMPORTS_FOR_VALUE' ) != "None" :
860
865
test_record ["NO-CHECK" ] = serialize_list (get_values_list (unit , 'NO_CHECK_IMPORTS_FOR_VALUE' ) or ["*" ])
@@ -934,6 +939,7 @@ def onadd_pytest_bin(unit, *args):
934
939
'BUILD-FOLDER-PATH' : _common .strip_roots (unit_path ),
935
940
'BLOB' : unit .get ('TEST_BLOB_DATA' ),
936
941
'CANONIZE_SUB_PATH' : unit .get ('CANONIZE_SUB_PATH' ),
942
+ 'MODULE_LANG' : consts .ModuleLang .PY ,
937
943
}
938
944
if binary_path :
939
945
test_record ['BINARY-PATH' ] = _common .strip_roots (binary_path )
@@ -1047,6 +1053,7 @@ def onjava_test(unit, *args):
1047
1053
'JDK_RESOURCE' : 'JDK' + (unit .get ('JDK_VERSION' ) or unit .get ('JDK_REAL_VERSION' ) or '_DEFAULT' ),
1048
1054
'JDK_FOR_TESTS' : 'JDK' + (unit .get ('JDK_VERSION' ) or unit .get ('JDK_REAL_VERSION' ) or '_DEFAULT' ) + '_FOR_TESTS' ,
1049
1055
'YT-SPEC' : serialize_list (yt_spec_values ),
1056
+ 'MODULE_LANG' : consts .ModuleLang .JAVA ,
1050
1057
}
1051
1058
test_classpath_origins = unit .get ('TEST_CLASSPATH_VALUE' )
1052
1059
if test_classpath_origins :
@@ -1088,6 +1095,7 @@ def onjava_test_deps(unit, *args):
1088
1095
'IGNORE_CLASSPATH_CLASH' : ' ' .join (get_values_list (unit , 'JAVA_IGNORE_CLASSPATH_CLASH_VALUE' )),
1089
1096
# JTEST/JTEST_FOR only
1090
1097
'MODULE_TYPE' : unit .get ('MODULE_TYPE' ),
1098
+ 'MODULE_LANG' : consts .ModuleLang .JAVA ,
1091
1099
}
1092
1100
if mode == 'strict' :
1093
1101
test_record ['STRICT_CLASSPATH_CLASH' ] = 'yes'
@@ -1464,6 +1472,7 @@ def clang_tidy(unit, *args, from_other_type=False):
1464
1472
'TEST_IOS_RUNTIME_TYPE' : unit .get ('TEST_IOS_RUNTIME_TYPE_VALUE' ),
1465
1473
'ANDROID_APK_TEST_ACTIVITY' : unit .get ('ANDROID_APK_TEST_ACTIVITY_VALUE' ),
1466
1474
'TEST_PARTITION' : unit .get ("TEST_PARTITION" ),
1475
+ 'MODULE_LANG' : consts .ModuleLang .CPP ,
1467
1476
}
1468
1477
1469
1478
data = dump_test (unit , test_record )
@@ -1536,6 +1545,7 @@ def unittest_py(unit, *args):
1536
1545
'TEST_IOS_RUNTIME_TYPE' : unit .get ('TEST_IOS_RUNTIME_TYPE_VALUE' ),
1537
1546
'ANDROID_APK_TEST_ACTIVITY' : unit .get ('ANDROID_APK_TEST_ACTIVITY_VALUE' ),
1538
1547
'TEST_PARTITION' : unit .get ("TEST_PARTITION" ),
1548
+ 'MODULE_LANG' : consts .ModuleLang .CPP ,
1539
1549
}
1540
1550
1541
1551
data = dump_test (unit , test_record )
@@ -1608,6 +1618,7 @@ def gunittest(unit, *args):
1608
1618
'TEST_IOS_RUNTIME_TYPE' : unit .get ('TEST_IOS_RUNTIME_TYPE_VALUE' ),
1609
1619
'ANDROID_APK_TEST_ACTIVITY' : unit .get ('ANDROID_APK_TEST_ACTIVITY_VALUE' ),
1610
1620
'TEST_PARTITION' : unit .get ("TEST_PARTITION" ),
1621
+ 'MODULE_LANG' : consts .ModuleLang .CPP ,
1611
1622
}
1612
1623
1613
1624
data = dump_test (unit , test_record )
@@ -1680,6 +1691,7 @@ def g_benchmark(unit, *args):
1680
1691
'TEST_IOS_RUNTIME_TYPE' : unit .get ('TEST_IOS_RUNTIME_TYPE_VALUE' ),
1681
1692
'ANDROID_APK_TEST_ACTIVITY' : unit .get ('ANDROID_APK_TEST_ACTIVITY_VALUE' ),
1682
1693
'TEST_PARTITION' : unit .get ("TEST_PARTITION" ),
1694
+ 'MODULE_LANG' : consts .ModuleLang .CPP ,
1683
1695
}
1684
1696
1685
1697
benchmark_opts = get_unit_list_variable (unit , 'BENCHMARK_OPTS_VALUE' )
@@ -1760,6 +1772,7 @@ def go_test(unit, *args):
1760
1772
'TEST_IOS_RUNTIME_TYPE' : unit .get ('TEST_IOS_RUNTIME_TYPE_VALUE' ),
1761
1773
'ANDROID_APK_TEST_ACTIVITY' : unit .get ('ANDROID_APK_TEST_ACTIVITY_VALUE' ),
1762
1774
'TEST_PARTITION' : unit .get ("TEST_PARTITION" ),
1775
+ 'MODULE_LANG' : consts .ModuleLang .GO ,
1763
1776
}
1764
1777
1765
1778
data = dump_test (unit , test_record )
@@ -1992,6 +2005,7 @@ def y_benchmark(unit, *args):
1992
2005
'TEST_IOS_RUNTIME_TYPE' : unit .get ('TEST_IOS_RUNTIME_TYPE_VALUE' ),
1993
2006
'ANDROID_APK_TEST_ACTIVITY' : unit .get ('ANDROID_APK_TEST_ACTIVITY_VALUE' ),
1994
2007
'TEST_PARTITION' : unit .get ("TEST_PARTITION" ),
2008
+ 'MODULE_LANG' : consts .ModuleLang .CPP ,
1995
2009
}
1996
2010
1997
2011
benchmark_opts = get_unit_list_variable (unit , 'BENCHMARK_OPTS_VALUE' )
@@ -2138,6 +2152,7 @@ def go_bench(unit, *args):
2138
2152
'ANDROID_APK_TEST_ACTIVITY' : unit .get ('ANDROID_APK_TEST_ACTIVITY_VALUE' ),
2139
2153
'TEST_PARTITION' : unit .get ("TEST_PARTITION" ),
2140
2154
'GO_BENCH_TIMEOUT' : unit .get ('GO_BENCH_TIMEOUT' ),
2155
+ 'MODULE_LANG' : consts .ModuleLang .GO ,
2141
2156
}
2142
2157
2143
2158
if "ya:run_go_benchmark" not in test_record ["TAG" ]:
0 commit comments