aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorNellie Zhang <nelliezh@gmail.com>2021-05-02 11:09:11 -0400
committerDylan Baker <dylan@pnwbakers.com>2021-05-03 13:06:05 -0700
commit802f66f442d4ce8d5aadc6cbeb67ec7db2414da4 (patch)
tree8f49ad44051e57d0c8e7083d36469d8edb171688 /run_unittests.py
parenta48a89374a57297420863bd9fa3c2ef2e4a6a064 (diff)
downloadmeson-802f66f442d4ce8d5aadc6cbeb67ec7db2414da4.zip
meson-802f66f442d4ce8d5aadc6cbeb67ec7db2414da4.tar.gz
meson-802f66f442d4ce8d5aadc6cbeb67ec7db2414da4.tar.bz2
Clarify incorrect configuration format message
Print the path and line where the problem occurred to make it more clear what the error message means.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 828c80e..1556b10 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -2126,7 +2126,7 @@ class AllPlatformTests(BasePlatformTests):
def test_do_conf_file_by_format(self):
def conf_str(in_data, confdata, vformat):
- (result, missing_variables, confdata_useless) = mesonbuild.mesonlib.do_conf_str(in_data, confdata, variable_format = vformat)
+ (result, missing_variables, confdata_useless) = mesonbuild.mesonlib.do_conf_str('configuration_file', in_data, confdata, variable_format = vformat)
return '\n'.join(result)
def check_formats(confdata, result):