Skip to content

Commit b87f1aa

Browse files
committed
Minor change
1 parent 51ed53e commit b87f1aa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ do
2525
test_mode="custom"
2626
elif [[ $var == "report" ]]; then
2727
test_mode="report"
28+
elif [[ $var == "combine" ]]; then
29+
test_mode="combine"
2830
elif [[ $var == "silent" || $var == "print" ]]; then
2931
print_mode="silent"
3032
elif [[ "$var" == *"test_"*".py"* ]]; then
@@ -180,6 +182,11 @@ gen_coverage_json_report()
180182
coverage json -o $fcoveragejson --fail-under=100 --omit=fastmath.py,docstring.py,min_versions.py,ray_python_version.py $fcoveragerc
181183
}
182184

185+
combine_coverage_data_files()
186+
{
187+
coverage combine
188+
}
189+
183190
test_custom()
184191
{
185192
# export NUMBA_DISABLE_JIT=1
@@ -385,6 +392,11 @@ elif [[ $test_mode == "report" ]]; then
385392
# Assume coverage tests have already been executed
386393
# and a coverage file exists
387394
gen_coverage_json_report
395+
elif [[ $test_mode == "combine" ]]; then
396+
echo "Combine All Coverage Data Files"
397+
# Assume coverage tests have already been executed
398+
# and a coverage file exists
399+
combine_coverage_data_files
388400
elif [[ $test_mode == "gpu" ]]; then
389401
echo "Executing GPU Unit Tests Only"
390402
test_gpu

0 commit comments

Comments
 (0)