Skip to content

Commit ba23524

Browse files
committed
Merge branch 'fc/test-aggregation-clean-up'
Code clean-up for test framework. * fc/test-aggregation-clean-up: test: don't print aggregate-results command test: simplify counts aggregation
2 parents ea09dff + 90ff7c9 commit ba23524

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

contrib/subtree/t/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ aggregate-results-and-cleanup: $(T)
7474
$(MAKE) clean
7575

7676
aggregate-results:
77-
for f in '$(TEST_RESULTS_DIRECTORY_SQ)'/t*-*.counts; do \
78-
echo "$$f"; \
79-
done | '$(SHELL_PATH_SQ)' ../../../t/aggregate-results.sh
77+
@'$(SHELL_PATH_SQ)' ../../../t/aggregate-results.sh '$(TEST_RESULTS_DIRECTORY_SQ)'
8078

8179
valgrind:
8280
$(MAKE) GIT_TEST_OPTS="$(GIT_TEST_OPTS) --valgrind"

t/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ aggregate-results-and-cleanup: $(T)
140140
$(MAKE) clean
141141

142142
aggregate-results:
143-
for f in '$(TEST_RESULTS_DIRECTORY_SQ)'/t*-*.counts; do \
144-
echo "$$f"; \
145-
done | '$(SHELL_PATH_SQ)' ./aggregate-results.sh
143+
@'$(SHELL_PATH_SQ)' ./aggregate-results.sh '$(TEST_RESULTS_DIRECTORY_SQ)'
146144

147145
valgrind:
148146
$(MAKE) GIT_TEST_OPTS="$(GIT_TEST_OPTS) --valgrind"

t/aggregate-results.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ broken=0
88
total=0
99
missing_prereq=
1010

11-
while read file
11+
for file in "$1"/t*-*.counts
1212
do
1313
while read type value
1414
do

0 commit comments

Comments
 (0)