From 57306181f1ffde3da1849c6d27e0b001d3bf5ea3 Mon Sep 17 00:00:00 2001 From: Gerard Gine Date: Tue, 13 Feb 2018 17:00:22 -0800 Subject: [PATCH] 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 --- .functests | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.functests b/.functests index fb491a3af4..bf920798ca 100755 --- a/.functests +++ b/.functests @@ -5,10 +5,11 @@ 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 -ostestr --serial --pretty $@ +ARGS="--serial ${@:-"--pretty"}" +ostestr $ARGS rvalue=$? -cd - +cd - > /dev/null exit $rvalue