subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1508809 - /subversion/trunk/subversion/tests/cmdline/davautocheck.sh
Date Wed, 31 Jul 2013 11:02:47 GMT
Author: danielsh
Date: Wed Jul 31 11:02:47 2013
New Revision: 1508809

URL: http://svn.apache.org/r1508809
Log:
* subversion/tests/cmdline/davautocheck.sh:
    Make sure there is always a newline after the "Stopping previous HTTPD
    instances" message.

Modified:
    subversion/trunk/subversion/tests/cmdline/davautocheck.sh

Modified: subversion/trunk/subversion/tests/cmdline/davautocheck.sh
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/davautocheck.sh?rev=1508809&r1=1508808&r2=1508809&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/davautocheck.sh (original)
+++ subversion/trunk/subversion/tests/cmdline/davautocheck.sh Wed Jul 31 11:02:47 2013
@@ -510,7 +510,13 @@ printf \
 '#!/bin/sh
 if [ -d "%s" ]; then
   printf "Stopping previous HTTPD instance..."
-  %s -k stop || kill -9 `cat %s`
+  if %s -k stop; then
+    # httpd had no output; echo a newline.
+    echo ""
+  else
+    # httpd would have printed an error terminated by a newline.
+    kill -9 `cat %s`
+  fi
 fi
 ' >$STOPSCRIPT "$HTTPD_ROOT" "$START" "$HTTPD_PID"
 chmod +x $STOPSCRIPT



Mime
View raw message