run_unittests: fix undefined variable in error message

In commit fe973d9fc4, 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
pull/8105/merge
Eli Schwartz 4 years ago committed by Dylan Baker
parent c3d516421f
commit 67e99bb4ed
  1. 2
      run_unittests.py

@ -6417,7 +6417,7 @@ class LinuxlikeTests(BasePlatformTests):
elif compiler.language == 'cpp': elif compiler.language == 'cpp':
env_flag_name = 'CXXFLAGS' env_flag_name = 'CXXFLAGS'
else: else:
raise NotImplementedError('Language {} not defined.'.format(p)) raise NotImplementedError('Language {} not defined.'.format(compiler.language))
env = {} env = {}
env[env_flag_name] = cmd_std env[env_flag_name] = cmd_std
with self.assertRaises((subprocess.CalledProcessError, mesonbuild.mesonlib.EnvironmentException), with self.assertRaises((subprocess.CalledProcessError, mesonbuild.mesonlib.EnvironmentException),

Loading…
Cancel
Save