Test: aligned without-restconf docker test with fcgi/native

Test: Fixed test_privileges
This commit is contained in:
Olof hagsand 2023-10-04 07:10:47 -05:00
parent 220ad29269
commit 39d3e533c3
3 changed files with 26 additions and 9 deletions

View file

@ -21,14 +21,14 @@ cfg=$dir/conf_startup.xml
fyang=$dir/clixon-example.yang
# Here $dir is created by the user that runs the script
# Cant be anything in root since it breaks some privileges
cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config">
<CLICON_CONFIGFILE>$cfg</CLICON_CONFIGFILE>
<CLICON_YANG_DIR>${YANG_INSTALLDIR}</CLICON_YANG_DIR>
<CLICON_YANG_MAIN_FILE>$fyang</CLICON_YANG_MAIN_FILE>
<CLICON_SOCK>/var/run/$APPNAME.sock</CLICON_SOCK>
<CLICON_BACKEND_PIDFILE>/var/run/$APPNAME.pidfile</CLICON_BACKEND_PIDFILE>
<CLICON_SOCK>$dir/$APPNAME.sock</CLICON_SOCK>
<CLICON_BACKEND_PIDFILE>$dir/$APPNAME.pidfile</CLICON_BACKEND_PIDFILE>
<CLICON_XMLDB_DIR>$dir</CLICON_XMLDB_DIR>
</clixon-config>
EOF
@ -87,7 +87,7 @@ function testrun(){
if [ $expecterr -eq 1 ]; then
return 0
fi
err
err 1 $expecterr
fi
new "Number of clixon_backend processes"