tests: Do not eat fprintd output in PAM test

It may be useful, just let it go to stdout/stderr.
This commit is contained in:
Benjamin Berg
2020-12-04 18:38:00 +01:00
parent f4eaacd0ec
commit 5ccb9ba0ec

View File

@ -17,7 +17,6 @@ import sys
import subprocess
import dbus
import dbusmock
import fcntl
import glob
import os
import shutil
@ -75,10 +74,7 @@ class TestPamFprintd(dbusmock.DBusTestCase):
def setUp(self):
(self.p_mock, self.obj_fprintd_manager) = self.spawn_server_template(
self.template_name, {}, stdout=subprocess.PIPE)
# set log to nonblocking
flags = fcntl.fcntl(self.p_mock.stdout, fcntl.F_GETFL)
fcntl.fcntl(self.p_mock.stdout, fcntl.F_SETFL, flags | os.O_NONBLOCK)
self.template_name, {})
self.obj_fprintd_mock = dbus.Interface(self.obj_fprintd_manager, 'net.reactivated.Fprint.Manager.Mock')
def tearDown(self):