Permalink
Browse files

Make dev-mode pants pass on return code correctly

Auditors: benjy
  • Loading branch information...
1 parent 1209c76 commit 18be1a6a69ea4ee2a7d9a4d170324de4dc003c66 @ryan-williams ryan-williams committed Oct 29, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 pants
View
@@ -28,6 +28,7 @@ PYTHON_DAEMON_EGG=$MY_DIR/3rdparty/python/python_daemon-1.6-py2.6.egg
function run_pants_bare() {
source $VIRTUAL_PYTHON/bin/activate
PYTHONPATH=$MAKO_EGG:$MARKDOWN_EGG:$PYGMENTS_EGG:$PYSTACHE_EGG:$PYTHON_DAEMON_EGG:$MY_DIR/src/python python $PANTS_EXE "$@"
+ ret=$?
deactivate
}
@@ -63,6 +64,7 @@ if [ ! -z "${PANTS_DEV}" ]; then
# ./pants.pex py src/python/twitter/pants "$@"
echo "*** running pants in dev mode from $PANTS_EXE ***"
run_pants_bare "$@"
+ exit $ret
else
${MY_DIR}/pants.pex "$@"
fi

0 comments on commit 18be1a6

Please sign in to comment.