File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -168,17 +168,17 @@ class HostSpecificConfiguration(object):
168168 if build_benchmarks :
169169 self .swift_benchmark_build_targets .append (
170170 "swift-benchmark-" + name )
171- # FIXME: This probably should respect `args.benchmark`, but
172- # a typo in build-script-impl meant we always would do this.
173- self .swift_benchmark_run_targets .append (
174- "check-swift-benchmark-" + name )
171+ if args .benchmark :
172+ self .swift_benchmark_run_targets .append (
173+ "check-swift-benchmark-" + name )
175174
176175 if build_external_benchmarks :
177176 # Add support for the external benchmarks.
178177 self .swift_benchmark_build_targets .append (
179178 "swift-benchmark-{}-external" .format (name ))
180- self .swift_benchmark_run_targets .append (
181- "check-swift-benchmark-{}-external" .format (name ))
179+ if args .benchmark :
180+ self .swift_benchmark_run_targets .append (
181+ "check-swift-benchmark-{}-external" .format (name ))
182182 if test :
183183 if test_host_only :
184184 suffix = "-non-executable"
Original file line number Diff line number Diff line change @@ -1389,7 +1389,7 @@ function calculate_targets_for_host() {
13891389 fi
13901390 if [[ " ${build_benchmark_this_target} " ]] && [[ " ${is_in_build_list} " ]]; then
13911391 SWIFT_BENCHMARK_TARGETS+=(" swift-benchmark-${stdlib_deployment_target} " )
1392- if [[ $( not ${SKIP_TEST_BENCHMARK } ) ]] ; then
1392+ if [[ $( not ${SKIP_TEST_BENCHMARKS } ) ]] ; then
13931393 SWIFT_RUN_BENCHMARK_TARGETS+=(" check-swift-benchmark-${stdlib_deployment_target} " )
13941394 fi
13951395 fi
@@ -1398,7 +1398,7 @@ function calculate_targets_for_host() {
13981398 [[ " ${build_external_benchmark_this_target} " ]] &&
13991399 [[ " ${is_in_build_list} " ]] ; then
14001400 SWIFT_BENCHMARK_TARGETS+=(" swift-benchmark-${stdlib_deployment_target} -external" )
1401- if [[ $( not ${SKIP_TEST_BENCHMARK } ) ]] ; then
1401+ if [[ $( not ${SKIP_TEST_BENCHMARKS } ) ]] ; then
14021402 SWIFT_RUN_BENCHMARK_TARGETS+=(" check-swift-benchmark-${stdlib_deployment_target} -external" )
14031403 fi
14041404 fi
@@ -1811,8 +1811,7 @@ for host in "${ALL_HOSTS[@]}"; do
18111811 echo " Running Swift tests for: ${SWIFT_TEST_TARGETS[@]} "
18121812 fi
18131813 if ! [[ " ${SKIP_TEST_BENCHMARKS} " ]] &&
1814- [[ " ${SWIFT_RUN_BENCHMARK_TARGETS[@]} " ]] &&
1815- ! [[ " ${SKIP_TEST_BENCHMARK} " ]]; then
1814+ [[ " ${SWIFT_RUN_BENCHMARK_TARGETS[@]} " ]]; then
18161815 echo " Running Swift benchmarks for: ${SWIFT_RUN_BENCHMARK_TARGETS[@]} "
18171816 fi
18181817 fi
You can’t perform that action at this time.
0 commit comments