aboutsummaryrefslogtreecommitdiffstats
path: root/test/sys_req
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2018-02-06 13:26:14 +0100
committerFlorin Coras <florin.coras@gmail.com>2018-02-06 15:39:57 +0000
commite060ed1e1891f0fdf88b53865eccded38728f44c (patch)
treebe21f70df895da3668c938cae70f85401b7dfec8 /test/sys_req
parentf051072f8518097cbce1a8a20510c4e43cb7167c (diff)
make test: don't test/set parameters in docker
Do not set UDS related system parameters if DOCKER_TEST is set to "True" as docker environment doesn't contain the necessary /proc/... entries. Change-Id: Id85e4512c7bba6b3feb6e6fd1fbe1e05aa10a341 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/sys_req')
-rwxr-xr-xtest/sys_req/set_system_parameters.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/sys_req/set_system_parameters.sh b/test/sys_req/set_system_parameters.sh
index 533a02edbaa..aa23634b435 100755
--- a/test/sys_req/set_system_parameters.sh
+++ b/test/sys_req/set_system_parameters.sh
@@ -20,6 +20,17 @@ then
exit 1
fi
+if test "$DOCKER_TEST" = "True"
+then
+ echo "=============================================================================="
+ echo "DOCKER_TEST is set to '$DOCKER_TEST'."
+ echo "Skipping verification of some system parameters."
+ echo "Make sure these are set properly, otherwise tests might fail."
+ echo "Required values/criteria are in '`readlink -e $file`'."
+ echo "=============================================================================="
+ exit 0
+fi
+
cat $file | grep -v -e '^#.*$' | grep -v -e '^ *$' | while read line
do
value_file=`echo $line | awk '{print $1}'`