update tests to keep in sync with v4
[freeside.git] / FS-Test / bin / freeside-test-start
index 197a847..cfa1adb 100755 (executable)
@@ -49,8 +49,9 @@ sudo cp $sharedir/htpasswd /usr/local/etc/freeside/htpasswd
 newtime=$(sudo -u freeside \
   psql -tc 'SELECT to_timestamp(max(_date) + 86400) FROM cust_bill' \
 )
-echo "Setting clock to $newtime."
-sudo date -s "$newtime"
+# no longer needed since we don't run LaTeX in the test script
+#echo "Setting clock to $newtime."
+#sudo date -s "$newtime"
 
 #echo "Applying upgrades."
 #sudo -u freeside freeside-upgrade test
@@ -58,6 +59,6 @@ sudo date -s "$newtime"
 
 # start Apache on a future date when all of the invoice dates are in the past
 echo "Restarting Apache."
-sudo service apache2 start
+sudo faketime "$newtime" apache2ctl start
 
 echo "Done."