summaryrefslogtreecommitdiff
path: root/unittests/platformagnostictests.py
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2022-03-30 18:45:02 +0200
committerEli Schwartz <eschwartz93@gmail.com>2022-11-22 22:53:07 -0500
commit7cbc15b8121aa3cae4c91fce0db4eafee78bf55f (patch)
tree40e855e715e2428e6fe7b7e66b119ed790621025 /unittests/platformagnostictests.py
parent49cd97c43487551a6b8bac4c5560bb2053270009 (diff)
downloadmeson-7cbc15b8121aa3cae4c91fce0db4eafee78bf55f.tar.gz
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/platformagnostictests.py')
-rw-r--r--unittests/platformagnostictests.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/unittests/platformagnostictests.py b/unittests/platformagnostictests.py
index 845d4e57f..39965c63a 100644
--- a/unittests/platformagnostictests.py
+++ b/unittests/platformagnostictests.py
@@ -83,9 +83,8 @@ class PlatformAgnosticTests(BasePlatformTests):
self.assertNotIn(log_msg, output)
# Check if message is written to the meson log
- mesonlog = os.path.join(self.builddir, 'meson-logs/meson-log.txt')
- with open(mesonlog, mode='r', encoding='utf-8') as file:
- self.assertIn(log_msg, file.read())
+ mesonlog = self.get_meson_log_raw()
+ self.assertIn(log_msg, mesonlog)
def test_new_subproject_reconfigure(self):
testdir = os.path.join(self.unit_test_dir, '107 new subproject on reconfigure')