bash: fix vpp-make-test -g option
- Don't pollute shell with local variables which also fixes a bug with -g option - If WS_ROOT is not set and vpp-make-test is invoked in the vpp root dir, then export WS_ROOT env var Type: fix Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: I608b666f7d3020863933a8072fb34e65c7f1c988
This commit is contained in:

committed by
Florin Coras

parent
d064c5976d
commit
785458895d
@ -29,14 +29,23 @@ vpp-make-test()
|
||||
local run_make_test
|
||||
local old_pwd
|
||||
local test_desc
|
||||
local grep_results
|
||||
local result
|
||||
local fail
|
||||
local i
|
||||
local line
|
||||
local is_feature="false"
|
||||
local retry_count=100
|
||||
local tester=${GERRIT_USER:-$USER}
|
||||
local jobs="auto"
|
||||
|
||||
if [ -z "$WS_ROOT" ] ; then
|
||||
if [ -d "./extras/bash" ] ; then
|
||||
export WS_ROOT="$(pwd)"
|
||||
else
|
||||
echo "ERROR: WS_ROOT is not set!"
|
||||
return
|
||||
fi
|
||||
elif [ ! -d "$WS_ROOT/src/vppinfra" ] ; then
|
||||
echo "ERROR: WS_ROOT is not set to a VPP workspace!"
|
||||
return
|
||||
|
Reference in New Issue
Block a user