From 8bb7ec80e75cce16c2c965e2eae3cd364e0866ef Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Tue, 16 Feb 2016 12:13:18 +0100 Subject: [PATCH] scripts/build.sh: bugfix: stay in top directory for non-posix platforms When TESTS=yes is given, the scripts invokes the test driver from the top build directory. Platform-specific actions hence must ensure that they stay in that directory and keep the last exit code. --- scripts/build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 62690d02..d2654194 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -11,12 +11,13 @@ config() { case "${PLATFORM}" in contiki) config "--disable-tests --disable-documentation --disable-examples" && \ - cd examples/contiki && make V=1 contiki all + make -C examples/contiki V=1 contiki all ;; lwip) config "--disable-tests --disable-documentation --disable-examples" && \ - cd examples/lwip && make lwip lwip-contrib all + make -C examples/lwip lwip lwip-contrib all ;; - posix|*) config "$WITH_TESTS --enable-documentation --enable-examples" && make + posix|*) config "$WITH_TESTS --enable-documentation --enable-examples" && \ + make ;; esac