diff options
author | Elio Maldonado <emaldona@redhat.com> | 2014-06-17 14:03:59 -0700 |
---|---|---|
committer | Elio Maldonado <emaldona@redhat.com> | 2014-06-17 14:03:59 -0700 |
commit | 2c2b6ce7434c7af24295f5f0d6cd20077f145827 (patch) | |
tree | 33088a0db524c6ec9e7a8bc98f89f115e25544ad /tests/all.sh | |
parent | 577680c3f24e93cbae52402ef9b51bb388b3aa58 (diff) | |
download | nss-hg-2c2b6ce7434c7af24295f5f0d6cd20077f145827.tar.gz |
Bug 1020395 - Check to determine the last tool built according to build type isn't incorrect, r=wtc
Diffstat (limited to 'tests/all.sh')
-rwxr-xr-x | tests/all.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/all.sh b/tests/all.sh index 1af4faf88..c0d2ba918 100755 --- a/tests/all.sh +++ b/tests/all.sh @@ -299,9 +299,15 @@ fi # created, we check for modutil to know whether the build # is complete. If a new file is created after that, the # following test for modutil should check for that instead. +# Exception: when building softoken only, shlibsign is the +# last file created. +if [ ${NSS_BUILD_SOFTOKEN_ONLY} -eq "1" ]; then + LAST_FILE_BUILT=shlibsign +else + LAST_FILE_BUILT=modutil +fi -if [ ! -f ${DIST}/${OBJDIR}/bin/modutil -a \ - ! -f ${DIST}/${OBJDIR}/bin/modutil.exe ]; then +if [ ! -f ${DIST}/${OBJDIR}/bin/${LAST_FILE_BUILT}${PROG_SUFFIX} ]; then echo "Build Incomplete. Aborting test." >> ${LOGFILE} html_head "Testing Initialization" Exit "Checking for build" |