Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
9e1c5bcc
Commit
9e1c5bcc
authored
15 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
[#3045] Start/stop python glib mainloop for test suite
parent
b9f2ee4b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/pysflphone/pysflphone_testdbus.py
+3
-0
3 additions, 0 deletions
tools/pysflphone/pysflphone_testdbus.py
tools/pysflphone/sflphonectrlsimple.py
+15
-3
15 additions, 3 deletions
tools/pysflphone/sflphonectrlsimple.py
with
18 additions
and
3 deletions
tools/pysflphone/pysflphone_testdbus.py
+
3
−
0
View file @
9e1c5bcc
...
...
@@ -135,10 +135,13 @@ class SflPhoneTests():
# Start Glib mainloop
self
.
sflphone
.
start
()
# SCENARIO 1 Test 4
def
test_ip2ip_recv_peer_hungup
(
self
):
"""
Wait for calls, answer, peer hangup
"""
# Add callback for this test
self
.
sflphone
.
onIncomingCall_cb
=
acceptOnIncomingCall
...
...
This diff is collapsed.
Click to expand it.
tools/pysflphone/sflphonectrlsimple.py
+
15
−
3
View file @
9e1c5bcc
...
...
@@ -71,9 +71,13 @@ class SflPhoneCtrlSimple(Thread):
self
.
loop
=
MainLoop
()
self
.
isStop
=
False
self
.
test
=
test
self
.
onIncomingCall_cb
=
None
self
.
event
=
Event
()
gobject
.
threads_init
()
...
...
@@ -83,6 +87,12 @@ class SflPhoneCtrlSimple(Thread):
self
.
loop
.
quit
()
def
stopThread
(
self
):
print
"
Stop PySFLphone
"
self
.
isStop
=
True
def
register
(
self
):
if
self
.
registered
:
return
...
...
@@ -614,9 +624,11 @@ class SflPhoneCtrlSimple(Thread):
def
run
(
self
):
"""
Processing method for this thread
"""
gobject
.
threads_init
()
# self.loop.run()
context
=
self
.
loop
.
get_context
()
while
1
:
while
True
:
context
.
iteration
(
True
)
if
self
.
isStop
:
return
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment