mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
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@gibson.dropbear.id.au>
This commit is contained in:
parent
0d6ade2547
commit
b2e61bde9f
1 changed files with 1 additions and 3 deletions
|
@ -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="$?"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue