Test: moved unsetting of vars to endtest
This commit is contained in:
parent
585823a609
commit
204c704b3a
90 changed files with 59 additions and 328 deletions
|
|
@ -177,12 +177,12 @@ EOF
|
|||
continue
|
||||
fi
|
||||
# Mask netconf header and footer
|
||||
sed -i -e "s/<rpc-reply $DEFAULTNS><data xmlns=\"urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring\">//" /var/tmp/test_netconf_monitoring.sh/ex.yang
|
||||
sed -i -e 's/<\/data><\/rpc-reply>]]>]]>//' /var/tmp/test_netconf_monitoring.sh/ex.yang
|
||||
sed -i -e "s/<rpc-reply $DEFAULTNS><data xmlns=\"urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring\">//" $dir/ex.yang
|
||||
sed -i -e 's/<\/data><\/rpc-reply>]]>]]>//' $dir/ex.yang
|
||||
# Decode XML
|
||||
sed -i -e 's/>/>/g' /var/tmp/test_netconf_monitoring.sh/ex.yang
|
||||
sed -i -e 's/</</g' /var/tmp/test_netconf_monitoring.sh/ex.yang
|
||||
sed -i -e 's/\&/\&/g' /var/tmp/test_netconf_monitoring.sh/ex.yang
|
||||
sed -i -e 's/>/>/g' $dir/ex.yang
|
||||
sed -i -e 's/</</g' $dir/ex.yang
|
||||
sed -i -e 's/\&/\&/g' $dir/ex.yang
|
||||
new "get-schema check yang $b"
|
||||
diff $dir/ex.yang $f
|
||||
if [ $? -ne 0 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue