Improve test cleanliness.
authorJack Miller <jack@codezen.org>
Wed, 9 Jun 2010 03:29:57 +0000 (22:29 -0500)
committerJack Miller <jack@codezen.org>
Wed, 9 Jun 2010 03:29:57 +0000 (22:29 -0500)
Signed-off-by: Jack Miller <jack@codezen.org>
canto_curses/gui.py [new file with mode: 0755]
tests/main.py

diff --git a/canto_curses/gui.py b/canto_curses/gui.py
new file mode 100755 (executable)
index 0000000..688b503
--- /dev/null
@@ -0,0 +1,8 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+#Canto-curses - ncurses RSS reader
+#   Copyright (C) 2010 Jack Miller <jack@codezen.org>
+#
+#   This program is free software; you can redistribute it and/or modify
+#   it under the terms of the GNU General Public License version 2 as 
+#   published by the Free Software Foundation.
index 52173db..3b533c9 100644 (file)
@@ -38,6 +38,7 @@ class Tests(unittest.TestCase):
 
         b.args(["-D", d])
         pid = b.start_daemon()
+        print "Forked: %d" % pid
 
         # Actually connect to the socket. If
         # there isn't a daemon running on it,
@@ -45,4 +46,5 @@ class Tests(unittest.TestCase):
         CantoClient.__init__(b, s)
 
         # Don't leave it hanging around for no reason.
-        # os.kill(pid, signal.SIGKILL)
+        b.write("DIE", "")
+        while not b.hupped: b.read()