#!/bin/bash SRC_DIR=$(python -c "import os; print os.path.dirname(os.path.realpath('$0'))") cd ${SRC_DIR}/test/functional nosetests --exe $@ func1=$? cd - cd ${SRC_DIR}/test/functionalnosetests nosetests --exe $@ func2=$? cd - exit $((func1 + func2))