Re: [U-Boot] [PATCH v3 02/26] dm: Don't run tests if U-Boot cannot be built

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:26, Simon Glass s...@chromium.org wrote:
 There is no point in running the tests if U-Boot cannot be built. Abort in
 this case.

 Signed-off-by: Simon Glass s...@chromium.org
 ---

 Changes in v3: None
 Changes in v2: None

  test/dm/test-dm.sh | 9 +++--
  1 file changed, 7 insertions(+), 2 deletions(-)

Applied to -u-boot-dm
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v3 02/26] dm: Don't run tests if U-Boot cannot be built

2015-01-25 Thread Simon Glass
There is no point in running the tests if U-Boot cannot be built. Abort in
this case.

Signed-off-by: Simon Glass s...@chromium.org
---

Changes in v3: None
Changes in v2: None

 test/dm/test-dm.sh | 9 +++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/test/dm/test-dm.sh b/test/dm/test-dm.sh
index bb99677..8ebc392 100755
--- a/test/dm/test-dm.sh
+++ b/test/dm/test-dm.sh
@@ -1,9 +1,14 @@
 #!/bin/sh
 
+die() {
+   echo $1
+   exit 1
+}
+
 NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor)
 dtc -I dts -O dtb test/dm/test.dts -o test/dm/test.dtb
-make O=sandbox sandbox_config
-make O=sandbox -s -j${NUM_CPUS}
+make O=sandbox sandbox_config || die Cannot configure U-Boot
+make O=sandbox -s -j${NUM_CPUS} || die Cannot build U-Boot
 dd if=/dev/zero of=spi.bin bs=1M count=2
 ./sandbox/u-boot -d test/dm/test.dtb -c dm test
 rm spi.bin
-- 
2.2.0.rc0.207.ga3a616c

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot