]> git.pond.sub.org Git - empserver/commitdiff
Add change directory before starting server tests
authorRon Koenderink <rkoenderink@yahoo.ca>
Sat, 9 Aug 2008 20:59:59 +0000 (14:59 -0600)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sat, 9 Aug 2008 20:59:59 +0000 (14:59 -0600)
The server tests would fail if the previous
steps were skippped.

src/scripts/nightly/nightlybuild.sh

index bc0a8803cfb26b7a9f175b6573f001853d1952ad..21fd2e3aa1df8cd5106a30c1211cd868d7c143fc 100755 (executable)
@@ -207,6 +207,7 @@ esac
 # END BUILD
 #
 
+cd "${BOXDIR}/${WORKDIR}" || err "Could not cd to ${BOXDIR}/${WORKDIR}"
 # Try to run startup utilities
 for onetime in 1
 do
@@ -218,7 +219,7 @@ do
                *GENERATE*) ;;
                *)
 
-       if [ -d ../emp4 -a -d ../emp4/bin -a -d ../emp4/sbin -a -d ../emp4/var/empire ]
+       if [ -d emp4 -a -d emp4/bin -a -d emp4/sbin -a -d emp4/var/empire ]
        then
                echo "Directory structure is ok"
        else
@@ -226,14 +227,14 @@ do
                break
        fi
 
-       cd ../emp4/bin || err "Could not cd to ../emp4/bin"
+       cd emp4/bin || err "Could not cd to emp4/bin"
 
        echo "Determining type of files in bin directory"
        file *
        echo "Done (file *)."
        echo ""
 
-       cd ../../emp4/sbin || err "Could not cd to ../../emp4/sbin"
+       cd ../sbin || err "Could not cd to ../sbin"
 
        echo "Determining type of files in sbin directory"
        file *