Write a session for ui tests and use it for test-icons
parent
47cc58b1e6
commit
3884507a74
@ -0,0 +1,21 @@
|
||||
import os
|
||||
|
||||
from sugar.session.DbusProcess import DbusProcess
|
||||
from sugar.session.MatchboxProcess import MatchboxProcess
|
||||
from sugar.session.Emulator import Emulator
|
||||
from sugar import env
|
||||
|
||||
class UITestSession:
|
||||
def start(self):
|
||||
env.setup_python_path()
|
||||
|
||||
if os.environ.has_key('SUGAR_EMULATOR') and \
|
||||
os.environ['SUGAR_EMULATOR'] == 'yes':
|
||||
emulator = Emulator()
|
||||
emulator.start()
|
||||
|
||||
process = MatchboxProcess()
|
||||
process.start()
|
||||
|
||||
process = DbusProcess()
|
||||
process.start()
|
@ -1,5 +0,0 @@
|
||||
Xephyr :50 -ac -screen 800x600 &
|
||||
|
||||
DISPLAY=:50
|
||||
matchbox-window-manager &
|
||||
exec $*
|
Loading…
Reference in New Issue