Skip to content

Commit

Permalink
Problem: simpleimage is built even if integration script fails
Browse files Browse the repository at this point in the history
Solution: call cleanup_and_exit 1 if it fail
  • Loading branch information
Michal Vyskocil committed Jan 25, 2016
1 parent d40cb0d commit 120f819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-recipe-simpleimage
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ recipe_build_simpleimage() {
[ -x $BUILD_ROOT/bin/bash ] && SHELL="/bin/bash"
if [ "`grep '^%build$' $BUILD_ROOT$TOPDIR/SOURCES/simpleimage`" ]; then
echo "Running integration script..."
sed -n '/%build/,$ p' $BUILD_ROOT$TOPDIR/SOURCES/simpleimage | tail -n +2 | chroot $BUILD_ROOT $SHELL -x
sed -n '/%build/,$ p' $BUILD_ROOT$TOPDIR/SOURCES/simpleimage | tail -n +2 | chroot $BUILD_ROOT $SHELL -x || cleanup_and_exit 1
echo "Integration script finished."
fi

Expand Down

0 comments on commit 120f819

Please sign in to comment.