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.
This commit is contained in:
Olaf Bergmann committed 2016-02-16 12:13:18 +01:00
1 parent 5b094eb432
commit 8bb7ec80e7
1 file changed
+4 -3
+4 -3
View File
@@ -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