diff options
author | Oz Tiram <[email protected]> | 2025-03-30 15:20:05 +0200 |
---|---|---|
committer | Luke from DC <[email protected]> | 2025-04-04 22:19:13 +0000 |
commit | b1f21edcec82c25cbd6b59b521a841f86fb1f327 (patch) | |
tree | 57bed53a768722d58d0d4c081be54198f90d6cb6 /test/testCommon.py | |
parent | 0672f82ffb2e56ffb711703b3b786714d2bc794c (diff) | |
download | atril-b1f21edcec82c25cbd6b59b521a841f86fb1f327.tar.bz2 atril-b1f21edcec82c25cbd6b59b521a841f86fb1f327.tar.xz |
Initial support for meson
Mostly copy and paste from linuxmint/xreader
Signed-off-by: Oz Tiram <[email protected]>
Diffstat (limited to 'test/testCommon.py')
-rw-r--r-- | test/testCommon.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/testCommon.py b/test/testCommon.py new file mode 100644 index 00000000..8e95bf58 --- /dev/null +++ b/test/testCommon.py @@ -0,0 +1,26 @@ +#!/usr/bin/python3 + +import os +import sys +import signal + +os.environ['LANG'] = 'C' + +from dogtail.config import config +config.logDebugToStdOut = True +config.logDebugToFile = False + +import dogtail.procedural as dt + +def run_app(file=None): + global pid + + if file is not None: + arguments = os.path.join(os.path.dirname(__file__), file) + else: + arguments = '' + pid = dt.run(sys.argv[1], arguments=arguments, appName='xreader') + +def bail(): + os.kill(pid, signal.SIGTERM) + sys.exit(1) |