From 7cbc15b8121aa3cae4c91fce0db4eafee78bf55f Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Wed, 30 Mar 2022 18:45:02 +0200 Subject: unittests: add and use get_meson_log_raw function This is like get_meson_log but returns the whole contents not split into individual lines. --- unittests/baseplatformtests.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'unittests/baseplatformtests.py') diff --git a/unittests/baseplatformtests.py b/unittests/baseplatformtests.py index 02dc923db..d83ef3f03 100644 --- a/unittests/baseplatformtests.py +++ b/unittests/baseplatformtests.py @@ -322,6 +322,10 @@ class BasePlatformTests(TestCase): each['command'] = compiler + ' ' + f.read() return contents + def get_meson_log_raw(self): + with self._open_meson_log() as f: + return f.read() + def get_meson_log(self): with self._open_meson_log() as f: return f.readlines() -- cgit v1.2.3