[farsight2/master] Update fs2 gui net module self-test to match its current state

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:23:01 PST 2008


---
 tests/gui/fs2_gui_net.py |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/tests/gui/fs2_gui_net.py b/tests/gui/fs2_gui_net.py
index 3050bcb..0bce8ed 100644
--- a/tests/gui/fs2_gui_net.py
+++ b/tests/gui/fs2_gui_net.py
@@ -28,6 +28,15 @@ import sys, os, pwd, os.path
 import socket, struct
 import gc
 
+
+try:
+    import pygst
+    pygst.require('0.10')
+        
+    import gst
+except ImportError, e:
+    raise SystemExit("Gst-Python couldn't be found! (%s)" % (e[0]))
+
 try:
     import farsight
 except:
@@ -418,7 +427,9 @@ if __name__ == "__main__":
     mainloop = gobject.MainLoop()
     gobject.threads_init()
     if len(sys.argv) > 1:
-        client = FsUIClient("127.0.0.1", int(sys.argv[1]), TestParticipant)
+        client = FsUIClient("127.0.0.1", int(sys.argv[1]),
+                            "cname" + sys.argv[1],
+                            TestParticipant)
     else:
-        listener = FsUIListener(9893, FsUIServer, TestParticipant)
+        listener = FsUIListener(9893, FsUIServer, "cnameServ", TestParticipant)
     mainloop.run()
-- 
1.5.6.5




More information about the farsight-commits mailing list