test: sleep typo, override YANG_INSTALLDIR in docker tests

This commit is contained in:
Olof hagsand 2022-02-07 14:41:50 +01:00
parent 2165a1368b
commit 61e8841642
6 changed files with 20 additions and 3 deletions

View file

@ -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>` * Filter labels are added to the basemodel tree and then filtered out using `@remove:<label>`
* This method reduces memory usage and is more generic * This method reduces memory usage and is more generic
* Backward compatible: can continue use the "old" trees. * 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 * see API changes
* New autocli edit-mode design * New autocli edit-mode design
* Control which modes to use with `edit-mode-default` * Control which modes to use with `edit-mode-default`

View file

@ -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 # Parse yangmodels from https://github.com/YangModels/yang
EOF 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 # Patch yang syntax errors
sed -i s/=\ olt\'/=\ \'olt\'/g /usr/local/share/yang/standard/ieee/published/802.3/ieee802-ethernet-pon.yang sed -i s/=\ olt\'/=\ \'olt\'/g /usr/local/share/yang/standard/ieee/published/802.3/ieee802-ethernet-pon.yang

View file

@ -93,6 +93,11 @@ RCPROTO=http # Because nginx
# Parse yangmodels from https://github.com/YangModels/yang # Parse yangmodels from https://github.com/YangModels/yang
EOF 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 # Patch yang syntax errors
sed -i s/=\ olt\'/=\ \'olt\'/g /usr/local/share/yang/standard/ieee/published/802.3/ieee802-ethernet-pon.yang sed -i s/=\ olt\'/=\ \'olt\'/g /usr/local/share/yang/standard/ieee/published/802.3/ieee802-ethernet-pon.yang

View file

@ -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" SKIPLIST="test_api.sh test_client.sh test_c++.sh test_install.sh test_privileges.sh"
EOF 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 # Patch yang syntax errors
sed -i s/=\ olt\'/=\ \'olt\'/g /usr/local/share/yang/standard/ieee/published/802.3/ieee802-ethernet-pon.yang sed -i s/=\ olt\'/=\ \'olt\'/g /usr/local/share/yang/standard/ieee/published/802.3/ieee802-ethernet-pon.yang

View file

@ -121,10 +121,10 @@ else
fi fi
# Multiplication factor to sleep less than whole seconds # Multiplication factor to sleep less than whole seconds
DEMSLEEP=.2 DEMSLEEP=0.2
# Some sleep implementations cannot handle sub-seconds, change to 1s # 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 # DEMWAIT is expressed in seconds, but really * DEMSLEEP
let DEMLOOP=5*DEMWAIT let DEMLOOP=5*DEMWAIT

View file

@ -152,5 +152,7 @@ fi
rm -rf $dir rm -rf $dir
RCPROTO= # This is sh not bash undef
new "endtest" new "endtest"
endtest endtest