aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-02-05 15:25:10 -0500
committerDylan Baker <dylan@pnwbakers.com>2021-02-05 16:33:23 -0800
commit67e99bb4edf3e4d423247a2f60b46f1214b52889 (patch)
tree24ab890252212ed8da59260fed66804e2d685fc8 /run_unittests.py
parentc3d516421fb8a08f38427076fc18758547ba89b7 (diff)
downloadmeson-67e99bb4edf3e4d423247a2f60b46f1214b52889.zip
meson-67e99bb4edf3e4d423247a2f60b46f1214b52889.tar.gz
meson-67e99bb4edf3e4d423247a2f60b46f1214b52889.tar.bz2
run_unittests: fix undefined variable in error message
In commit fe973d9fc45581f20fefc41fc0b8eb0066c0129d, some uses of p got rewritten to compiler.language, but not all. We'd still raise an error message, but for the wrong thing. o_O
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 0006343..5ac2d1a 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -6417,7 +6417,7 @@ class LinuxlikeTests(BasePlatformTests):
elif compiler.language == 'cpp':
env_flag_name = 'CXXFLAGS'
else:
- raise NotImplementedError('Language {} not defined.'.format(p))
+ raise NotImplementedError('Language {} not defined.'.format(compiler.language))
env = {}
env[env_flag_name] = cmd_std
with self.assertRaises((subprocess.CalledProcessError, mesonbuild.mesonlib.EnvironmentException),