def METHOD_NAME(request):
    if p.with_systemd:
        def log_current_test():
            subprocess.Popen("echo $PYTEST_CURRENT_TEST | systemd-cat -t pytest", stdin=subprocess.PIPE, shell=True)
        log_current_test()
        request.addfinalizer(log_current_test)
        return METHOD_NAME