autotest: skip binary builds without submodules

the build_binaries is trying to build for navio and pxf without
submodules
This commit is contained in:
Andrew Tridgell 2015-06-23 21:43:28 +10:00
parent 54e2ebde1c
commit fd17a69cd1
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@ githash=$(git rev-parse HEAD)
hdate=$(date +"%Y-%m/%Y-%m-%d-%H:%m")
mkdir -p binaries/$hdate
binaries=$PWD/../buildlogs/binaries
BASEDIR=$PWD
error_count=0
@ -69,6 +70,10 @@ skip_build() {
echo "Skipping build - version match $newversion"
return 0
}
[ -f $BASEDIR/.gitmodules ] || {
echo "Skipping build without submodules"
return 0
}
echo "$ldir needs rebuild"
return 1
}