mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
tests: Use native meson exec wrapper in test setups instead of our script
No need to provide a script that will break usage of `meson test --gdb` when we can use a native and cleaner alternative. We can then ignore LIBFPRINT_TEST_WRAPPER in basic tests, while it is still needed by umockdev tests.
This commit is contained in:
@@ -22,14 +22,6 @@ except Exception as e:
|
||||
|
||||
FPrint = None
|
||||
|
||||
# Re-run the test with the passed wrapper if set
|
||||
wrapper = os.getenv('LIBFPRINT_TEST_WRAPPER')
|
||||
if wrapper:
|
||||
wrap_cmd = wrapper.split(' ') + [sys.executable, os.path.abspath(__file__)] + \
|
||||
sys.argv[1:]
|
||||
os.unsetenv('LIBFPRINT_TEST_WRAPPER')
|
||||
sys.exit(subprocess.check_call(wrap_cmd))
|
||||
|
||||
ctx = GLib.main_context_default()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user