[med-svn] [figtree] 01/01: Hack around problem, that figtree needs manual interaction to end

Andreas Tille tille at debian.org
Thu Nov 30 08:23:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository figtree.

commit c28d178e7fc36c9b8acd015d05dd64810e0fe1f6
Author: Andreas Tille <tille at debian.org>
Date:   Thu Nov 30 09:23:30 2017 +0100

    Hack around problem, that figtree needs manual interaction to end
---
 debian/changelog           |  1 +
 debian/tests/run-unit-test | 11 +++++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f8f4cfb..e16c76d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ figtree (1.4.3+dfsg-3) UNRELEASED; urgency=medium
 
   [ Andreas Tille ]
   * Drop wrong paragraph about texinfo in manpage
+  * Hack around problem, that figtree needs manual interaction to end
 
  -- Katerina Kalou <aik.kalou at gmail.com>  Wed, 29 Nov 2017 22:56:03 +0200
 
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
index fd1d1ea..46a6377 100644
--- a/debian/tests/run-unit-test
+++ b/debian/tests/run-unit-test
@@ -12,7 +12,10 @@ cd $ADTTMP
 cp -a /usr/share/doc/${pkg}/examples/* .
 gunzip -r *
 
-figtree HA_continuous_MCC.tre HA_discrete_MCC.tre
-figtree -graphic PDF test.tree test.pdf
-figtree -graphic GIF -width 320 -height 320 test.tree test.gif
-
+# Problem: figtree creates graphical output and requires user interaction to end
+# Hack around: start figtree in background and kill all figtree processes started by the current user
+figtree HA_continuous_MCC.tre HA_discrete_MCC.tre &
+figtree -graphic PDF test.tree test.pdf &
+figtree -graphic GIF -width 320 -height 320 test.tree test.gif &
+sleep 10
+kill -9 `ps aux | grep -w "^${USER}.*figtree" | grep -v "0:0[0-9] grep " | grep -v "0:0[0-9] ps " | sed "s/^${USER}[[:space:]]\+\([0-9]\+\)[[:space:]]\+.*/\1/"`

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/figtree.git



More information about the debian-med-commit mailing list