mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-20 21:08:50 +01:00
Specs: extract select_de()
This commit is contained in:
parent
5d0e8b1b03
commit
fe2bd6c6d6
@ -37,6 +37,15 @@ def kill_xvnc():
|
||||
run_cmd('vncserver -kill :1')
|
||||
|
||||
|
||||
def select_de(de_name):
|
||||
try:
|
||||
cmd = f'{vncserver_cmd} -select-de {de_name}'
|
||||
completed_process = run_cmd(cmd)
|
||||
expect(completed_process.returncode).to(equal(0))
|
||||
finally:
|
||||
kill_xvnc()
|
||||
|
||||
|
||||
def check_de_was_setup_to_run(de_name):
|
||||
completed_process = run_cmd(f'grep -q {de_name} ~/.vnc/xstartup')
|
||||
expect(completed_process.returncode).to(equal(0))
|
||||
|
Loading…
Reference in New Issue
Block a user