[Crosstoolchain-logs] [device-tree-compiler] 197/357: dtc: Don't use env(1) in testsuite

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:13 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit b2e61bde9fa50428380f7d9e170781499fe462f1
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Tue Nov 20 22:14:12 2007 +1100

    dtc: Don't use env(1) in testsuite
    
    The run_tests.sh script currently invokes the testcase binaries via
    env(1).  This behaviour is inherited from the libhugetlbfs testsuite
    which uses this approach to easily set various configuration
    environment variables in testcases.
    
    We don't use that for dtc, and are unlikely to ever want to.
    Therefore this patch removes that technique, which substantially
    speeds up the testsuite.
    
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 tests/run_tests.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 2a41d43..1a3bcbf 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -2,8 +2,6 @@
 
 export QUIET_TEST=1
 
-ENV=/usr/bin/env
-
 tot_tests=0
 tot_pass=0
 tot_fail=0
@@ -13,7 +11,7 @@ tot_strange=0
 run_test () {
     tot_tests=$[tot_tests + 1]
     echo -n "$@:	"
-    if PATH=".:$PATH" $ENV "$@"; then
+    if "./$@"; then
 	tot_pass=$[tot_pass + 1]
     else
 	ret="$?"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list