OSDN Git Service

Use more generic redirecting of output in the test suite
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Thu, 2 Oct 2008 12:54:43 +0000 (12:54 -0000)
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Thu, 2 Oct 2008 12:54:43 +0000 (12:54 -0000)
This patch replaces the "&> file" with "> file 2>> file". The latter is
compatible with Busybox ash shell, which makes it easier to run the test suite
on target.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
test/Test.mak

index af415aa..c0c9996 100644 (file)
@@ -59,7 +59,7 @@ define exec_test
        $(showtest)
        $(Q)\
        $(WRAPPER) $(WRAPPER_$(patsubst %_glibc,%,$(binary_name))) \
-       ./$(binary_name) $(OPTS) $(OPTS_$(patsubst %_glibc,%,$(binary_name))) &> "$(binary_name).out" ; \
+       ./$(binary_name) $(OPTS) $(OPTS_$(patsubst %_glibc,%,$(binary_name))) > "$(binary_name).out" 2>> "$(binary_name).out" ; \
                ret=$$? ; \
                expected_ret="$(RET_$(patsubst %_glibc,%,$(binary_name)))" ; \
                test -z "$$expected_ret" && export expected_ret=0 ; \