t/aggregate-results: accomodate systems with small max argument list length
authorBrandon Casey <drafnel@gmail.com>
Wed, 2 Jun 2010 00:13:44 +0000 (19:13 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jun 2010 16:36:49 +0000 (09:36 -0700)
IRIX 6.5 has a default maximum argument list length of 20480.  The file
glob that is passed to aggregate-results currently exceeds this length, and
so the script cannot run successfully.  Work around this issue by passing
the file names in via the standard input rather than the argument list.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/Makefile
t/aggregate-results.sh

index 25c559b..cd008a3 100644 (file)
@@ -35,7 +35,9 @@ aggregate-results-and-cleanup: $(T)
        $(MAKE) clean
 
 aggregate-results:
-       '$(SHELL_PATH_SQ)' ./aggregate-results.sh test-results/t*-*
+       for f in test-results/t*-*; do \
+               echo "$$f"; \
+       done | '$(SHELL_PATH_SQ)' ./aggregate-results.sh
 
 # we can test NO_OPTIMIZE_COMMITS independently of LC_ALL
 full-svn-test:
index d5bab75..d206b7c 100755 (executable)
@@ -6,7 +6,7 @@ failed=0
 broken=0
 total=0
 
-for file
+while read file
 do
        while read type value
        do