fixed tests after updates
This commit is contained in:
parent
6b08a22f04
commit
72dd31395e
6 changed files with 16 additions and 7 deletions
|
|
@ -201,8 +201,9 @@ fi
|
|||
|
||||
rm -rf $dir
|
||||
|
||||
# Define default restconfig config: RESTCONFIG
|
||||
restconf_config none
|
||||
# Set by restconf_config
|
||||
unset RESTCONFIG
|
||||
|
||||
# unset conditional parameters
|
||||
unset format
|
||||
unset perfnr
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ if [ -d ${TOP_SRCDIR}/example/main/$y ]; then
|
|||
else
|
||||
cp /usr/local/share/clixon/$y $dir/
|
||||
fi
|
||||
y=clixon-restconf@2020-10-30.yang
|
||||
y=clixon-restconf@2020-12-30.yang
|
||||
if [ -d ${TOP_SRCDIR}/yang/clixon ]; then
|
||||
cp ${TOP_SRCDIR}/yang/clixon/$y $dir/
|
||||
else
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
# Magic line must be first in script (see README.md)
|
||||
s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
|
||||
|
||||
# Skip it other than evhtp
|
||||
# Skip if other than evhtp
|
||||
if [ "${WITH_RESTCONF}" != "evhtp" ]; then
|
||||
if [ "$s" = $0 ]; then exit 0; else return 0; fi # skip
|
||||
fi
|
||||
|
|
@ -18,6 +18,14 @@ if [ $valgrindtest -eq 3 ]; then
|
|||
if [ "$s" = $0 ]; then exit 0; else return 0; fi # skip
|
||||
fi
|
||||
|
||||
# Check if ip netns is implemented (Alpine does not have it)
|
||||
ip netns 2> /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "...ip netns does not work"
|
||||
if [ "$s" = $0 ]; then exit 0; else return 0; fi # skip
|
||||
fi
|
||||
|
||||
|
||||
APPNAME=example
|
||||
|
||||
cfg=$dir/conf.xml
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
# Use nacm module in example/main/example_restconf.c hardcoded to
|
||||
# andy:bar and wilma:bar
|
||||
|
||||
|
||||
# Magic line must be first in script (see README.md)
|
||||
s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue