Write a non ui test session.
This commit is contained in:
parent
3884507a74
commit
7958f30744
@ -5,4 +5,5 @@ sugar_PYTHON = \
|
|||||||
Emulator.py \
|
Emulator.py \
|
||||||
MatchboxProcess.py \
|
MatchboxProcess.py \
|
||||||
Process.py \
|
Process.py \
|
||||||
|
TestSession.py \
|
||||||
UITestSession.py
|
UITestSession.py
|
||||||
|
9
sugar/session/TestSession.py
Normal file
9
sugar/session/TestSession.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
from sugar.session.DbusProcess import DbusProcess
|
||||||
|
from sugar import env
|
||||||
|
|
||||||
|
class TestSession:
|
||||||
|
def start(self):
|
||||||
|
env.setup_python_path()
|
||||||
|
|
||||||
|
process = DbusProcess()
|
||||||
|
process.start()
|
12
tests/simulator/kiu.py
Executable file
12
tests/simulator/kiu.py
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
import os
|
||||||
|
from sugar.session.TestSession import TestSession
|
||||||
|
from sugar.presence import PresenceService
|
||||||
|
|
||||||
|
os.environ['SUGAR_NICK_NAME'] = 'kiu'
|
||||||
|
|
||||||
|
session = TestSession()
|
||||||
|
session.start()
|
||||||
|
|
||||||
|
PresenceService.start()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user