File: test-python-session-lock.py

package info (click to toggle)
gtk4-layer-shell 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 852 kB
  • sloc: ansic: 5,701; python: 421; xml: 417; makefile: 10
file content (13 lines) | stat: -rwxr-xr-x 432 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python3

import os
import smoke_test_common

script_path = os.path.join(os.path.dirname(__file__), '..', '..', 'examples', 'session-lock.py')
assert os.path.isfile(script_path), 'script not found at ' + script_path
src_build_dir = smoke_test_common.build_dir() + '/src'
env = {
    'GI_TYPELIB_PATH': src_build_dir,
    'LD_LIBRARY_PATH': src_build_dir,
}
smoke_test_common.run(['python3', script_path], 'lock', env)