Don't fail if /tmp/port/stop doesn't exist when stopping test env.

This commit is contained in:
Daniel Nichter
2012-07-19 12:40:51 -06:00
parent 785de0cf57
commit efb6a0f6ce
3 changed files with 12 additions and 9 deletions

View File

@@ -17,8 +17,11 @@ for port in "$@"; do
continue
fi
/tmp/$port/stop
exit_status=$((exit_status | $?))
if [ -x "/tmp/$port/stop" ]; then
/tmp/$port/stop
exit_status=$((exit_status | $?))
fi
rm -rf /tmp/$port
exit_status=$((exit_status | $?))
done