[Crosstoolchain-logs] [device-tree-compiler] 150/357: dtc: Don't delete *.test.dtb between testgroups

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:08 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 121acdec91f269b3efb4b5ac45820f0d1a3b37a1
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Tue Oct 16 13:53:20 2007 +1000

    dtc: Don't delete *.test.dtb between testgroups
    
    The dtc/libfdt testsuite creates a number of .dtb files during its
    run.  To ensure a clean test run, these are currently deleted before
    each group of tests.
    
    This is, in fact, a mistake, since if something goes wrong in the
    first group of tests, deleting the .dtb at the beginning of the second
    group of tests makes it harder to figure out what the problem was.
    
    This patch changes the script to only delete the files once, before
    the whole test run.
    
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 tests/run_tests.sh | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 2a5e486..6bc20ea 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -60,9 +60,6 @@ tree1_tests_rw () {
 }
 
 libfdt_tests () {
-    # Make sure we don't have stale blobs lying around
-    rm -f *.test.dtb
-
     tree1_tests test_tree1.dtb
 
     # Sequential write tests
@@ -102,9 +99,6 @@ libfdt_tests () {
 }
 
 dtc_tests () {
-    # Make sure we don't have stale blobs lying around
-    rm -f *.test.dtb
-
     run_test dtc.sh -f -I dts -O dtb -o dtc_tree1.test.dtb test_tree1.dts
     tree1_tests dtc_tree1.test.dtb
     tree1_tests_rw dtc_tree1.test.dtb
@@ -125,6 +119,9 @@ if [ -z "$TESTSETS" ]; then
     TESTSETS="libfdt dtc"
 fi
 
+# Make sure we don't have stale blobs lying around
+rm -f *.test.dtb
+
 for set in $TESTSETS; do
     case $set in
 	"libfdt")

-- 
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