test: sleep typo, override YANG_INSTALLDIR in docker tests
This commit is contained in:
parent
2165a1368b
commit
61e8841642
6 changed files with 20 additions and 3 deletions
|
|
@ -64,7 +64,7 @@ This release introduces a new autocli design with a clixon-autocli YANG file
|
|||
* Filter labels are added to the basemodel tree and then filtered out using `@remove:<label>`
|
||||
* This method reduces memory usage and is more generic
|
||||
* Backward compatible: can continue use the "old" trees.
|
||||
* Note: while @datamodel etc are backward compatible, the autocli redesign is NOT backward compatible
|
||||
* Note: while `@datamodel` etc are backward compatible, the autocli redesign is NOT backward compatible
|
||||
* see API changes
|
||||
* New autocli edit-mode design
|
||||
* Control which modes to use with `edit-mode-default`
|
||||
|
|
|
|||
|
|
@ -64,6 +64,11 @@ SKIPLIST="test_api.sh test_c++.sh test_install.sh test_privileges.sh test_augmen
|
|||
# Parse yangmodels from https://github.com/YangModels/yang
|
||||
EOF
|
||||
|
||||
# Patch to override YANG_INSTALLDIRS
|
||||
cat <<EOF >> /usr/local/bin/test/config.sh
|
||||
YANG_INSTALLDIR=/usr/local/share/clixon
|
||||
EOF
|
||||
|
||||
# Patch yang syntax errors
|
||||
sed -i s/=\ olt\'/=\ \'olt\'/g /usr/local/share/yang/standard/ieee/published/802.3/ieee802-ethernet-pon.yang
|
||||
|
||||
|
|
|
|||
|
|
@ -93,6 +93,11 @@ RCPROTO=http # Because nginx
|
|||
# Parse yangmodels from https://github.com/YangModels/yang
|
||||
EOF
|
||||
|
||||
# Patch to override YANG_INSTALLDIRS
|
||||
cat <<EOF >> /usr/local/bin/test/config.sh
|
||||
YANG_INSTALLDIR=/usr/local/share/clixon
|
||||
EOF
|
||||
|
||||
# Patch yang syntax errors
|
||||
sed -i s/=\ olt\'/=\ \'olt\'/g /usr/local/share/yang/standard/ieee/published/802.3/ieee802-ethernet-pon.yang
|
||||
|
||||
|
|
|
|||
|
|
@ -61,6 +61,11 @@ cat <<EOF > /usr/local/bin/test/site.sh
|
|||
SKIPLIST="test_api.sh test_client.sh test_c++.sh test_install.sh test_privileges.sh"
|
||||
EOF
|
||||
|
||||
# Patch to override YANG_INSTALLDIRS
|
||||
cat <<EOF >> /usr/local/bin/test/config.sh
|
||||
YANG_INSTALLDIR=/usr/local/share/clixon
|
||||
EOF
|
||||
|
||||
# Patch yang syntax errors
|
||||
sed -i s/=\ olt\'/=\ \'olt\'/g /usr/local/share/yang/standard/ieee/published/802.3/ieee802-ethernet-pon.yang
|
||||
|
||||
|
|
|
|||
|
|
@ -121,10 +121,10 @@ else
|
|||
fi
|
||||
|
||||
# Multiplication factor to sleep less than whole seconds
|
||||
DEMSLEEP=.2
|
||||
DEMSLEEP=0.2
|
||||
|
||||
# Some sleep implementations cannot handle sub-seconds, change to 1s
|
||||
sleep $DEMPSLEEP || DEMSLEEP=1
|
||||
sleep $DEMSLEEP || DEMSLEEP=1
|
||||
|
||||
# DEMWAIT is expressed in seconds, but really * DEMSLEEP
|
||||
let DEMLOOP=5*DEMWAIT
|
||||
|
|
|
|||
|
|
@ -152,5 +152,7 @@ fi
|
|||
|
||||
rm -rf $dir
|
||||
|
||||
RCPROTO= # This is sh not bash undef
|
||||
|
||||
new "endtest"
|
||||
endtest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue