summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2018-02-16 18:26:11 -0500
committerKeith Burns <alagalah@gmail.com>2018-02-19 14:57:39 +0000
commitb5a86eed8bd889f5c8986e5fa569a50b997ccd77 (patch)
treec7d7d4ac845fbf7c6abf3fb116d52ad2ab9faad7 /test
parent1d3ab72941432c0f690841924630c45d282e1e88 (diff)
VCL: config api prefix using env var.
- Configure vpp api prefix using VCL_API_PREFIX environment variable. - Prepend api prefix to vpp api filename when connecting to vpp. - Fix stale vcl_cfg ptr after heap allocation. - Cleanup misleading warning messages wrt. reading the vcl config file. Change-Id: I908c9b567ff4f6f0c21ae43a4627a1a3202a3290 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/scripts/socket_test.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/scripts/socket_test.sh b/test/scripts/socket_test.sh
index 609fc62ab2a..96a445eb815 100755
--- a/test/scripts/socket_test.sh
+++ b/test/scripts/socket_test.sh
@@ -520,6 +520,9 @@ write_script_header() {
if [ -n "$VCL_CONFIG" ] ; then
echo "export VCL_CONFIG=${vcl_config_dir}${vcl_config}" >> $1
fi
+ if [ -n "$VCL_API_PREFIX" ] ; then
+ echo "export VCL_API_PREFIX=$VCL_API_PREFIX" >> $1
+ fi
if [ -n "$VCL_DEBUG" ] ; then
echo "export VCL_DEBUG=$VCL_DEBUG" >> $1
fi