travis: fix bug in update_release_local and add test
This commit is contained in:
@@ -113,6 +113,9 @@ existing_line=$(grep "MOD1=" $release_local)
|
||||
head -n 1 $release_local | grep -q "MOD1=" || die "Line for MOD1 not at the top of RELEASE.local"
|
||||
tail -n 1 $release_local | grep -q "EPICS_BASE=" || die "Line for EPICS_BASE not moved to the end of RELEASE.local"
|
||||
|
||||
# Check that RELEASE.local only contains variable settings
|
||||
[ $(grep -v -c '[^ =]*=.*' $release_local) -ne 0 ] && die "RELEASE.local contains invalid lines"
|
||||
|
||||
rm -f $release_local
|
||||
|
||||
# test add_dependency()
|
||||
|
||||
@@ -75,7 +75,7 @@ update_release_local() {
|
||||
if [ $ret -eq 0 ]
|
||||
then
|
||||
base_line=$(grep "EPICS_BASE=" ${release_local})
|
||||
sedi 's|EPICS_BASE=||g' ${release_local}
|
||||
sedi '\|EPICS_BASE=|d' ${release_local}
|
||||
echo ${base_line} >> ${release_local}
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user