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:
Marco Trevisan (Treviño)
2021-04-13 17:04:01 +02:00
parent 683ac48e21
commit 9a1dcaa801
4 changed files with 18 additions and 26 deletions

View File

@@ -21,14 +21,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))
def load_image(img):
png = cairo.ImageSurface.create_from_png(img)