[Libreoffice-commits] online.git: test/run_unit.sh.in

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat May 4 21:53:57 UTC 2019


 test/run_unit.sh.in |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

New commits:
commit 2943d096698c0747f1c450e187ad44d2b373d2bb
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Sat May 4 21:26:40 2019 +0100
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Sat May 4 23:53:38 2019 +0200

    test: encourage the test script to sleep for the debugger too.
    
    Change-Id: I538b2d80f57ecc8a342a38a64864d16b9128a04f
    Reviewed-on: https://gerrit.libreoffice.org/71804
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/test/run_unit.sh.in b/test/run_unit.sh.in
index 2b67e8385..1b4312824 100755
--- a/test/run_unit.sh.in
+++ b/test/run_unit.sh.in
@@ -96,6 +96,12 @@ if test "z$tst" == "z"; then
                                  --o:ssl.ca_file_path="${abs_top_builddir}/etc/ca-chain.cert.pem" \
                                  --o:admin_console.username=admin --o:admin_console.password=admin \
                                  > "$tst_log" 2>&1 &
+     if test "z${SLEEPFORDEBUGGER}${SLEEPKITFORDEBUGGER}" != "z"; then
+	  echo "sleeping for debugger"
+          sleep ${SLEEPFORDEBUGGER:-0}
+          sleep ${SLEEPKITFORDEBUGGER:-0}
+     fi
+
      echo "  executing test"
 
      oldpath=`pwd`
@@ -109,8 +115,10 @@ if test "z$tst" == "z"; then
 	 retval=1
      fi
 
-     echo "killing $!"
-     kill $!
+     if test "z${SLEEPFORDEBUGGER}${SLEEPKITFORDEBUGGER}" == "z"; then
+         echo "killing $!"
+         kill $!
+     fi
 
      exit $retval
 


More information about the Libreoffice-commits mailing list