Improved usage of args in .functests

If we're calling the script with any arguments, --pretty will not
be passed to ostestr.
Also redirected cd commands' output to /dev/null in .functests.

Change-Id: I6e7e391c7e1659b86ab12eae4362b565218917b2
This commit is contained in:
Gerard Gine 2018-02-13 17:00:22 -08:00
parent b33941feda
commit 57306181f1

View File

@ -5,10 +5,11 @@
SRC_DIR=$(python -c "import os; print os.path.dirname(os.path.realpath('$0'))") SRC_DIR=$(python -c "import os; print os.path.dirname(os.path.realpath('$0'))")
cd ${SRC_DIR} cd ${SRC_DIR} > /dev/null
export TESTS_DIR=${SRC_DIR}/test/functional export TESTS_DIR=${SRC_DIR}/test/functional
ostestr --serial --pretty $@ ARGS="--serial ${@:-"--pretty"}"
ostestr $ARGS
rvalue=$? rvalue=$?
cd - cd - > /dev/null
exit $rvalue exit $rvalue