From 2c2b6ce7434c7af24295f5f0d6cd20077f145827 Mon Sep 17 00:00:00 2001 From: Elio Maldonado Date: Tue, 17 Jun 2014 14:03:59 -0700 Subject: Bug 1020395 - Check to determine the last tool built according to build type isn't incorrect, r=wtc --- tests/all.sh | 10 ++++++++-- 1 file 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" -- cgit v1.2.1