linux: Add a way to run upowerd under catchsegv

So we can use that to catch crashes instead of monitoring the whole test
session.
This commit is contained in:
Bastien Nocera 2022-09-05 15:30:08 +02:00
parent 7f3a31447f
commit 35c68c107d

View file

@ -197,6 +197,8 @@ class Tests(dbusmock.DBusTestCase):
if os.getenv('VALGRIND') != None:
daemon_path = ['valgrind', self.daemon_path, '-v']
elif os.getenv('CATCH') != None:
daemon_path = ['catchsegv', self.daemon_path, '-v']
else:
daemon_path = [self.daemon_path, '-v']
self.daemon = subprocess.Popen(daemon_path,