diff options
author | Marvin Scholz <epirat07@gmail.com> | 2022-03-30 18:45:02 +0200 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-11-22 22:53:07 -0500 |
commit | 7cbc15b8121aa3cae4c91fce0db4eafee78bf55f (patch) | |
tree | 40e855e715e2428e6fe7b7e66b119ed790621025 /unittests/baseplatformtests.py | |
parent | 49cd97c43487551a6b8bac4c5560bb2053270009 (diff) | |
download | meson-7cbc15b8121aa3cae4c91fce0db4eafee78bf55f.zip meson-7cbc15b8121aa3cae4c91fce0db4eafee78bf55f.tar.gz meson-7cbc15b8121aa3cae4c91fce0db4eafee78bf55f.tar.bz2 |
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.
Diffstat (limited to 'unittests/baseplatformtests.py')
-rw-r--r-- | unittests/baseplatformtests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/baseplatformtests.py b/unittests/baseplatformtests.py index 02dc923..d83ef3f 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() |