summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unittests/allplatformstests.py4
-rw-r--r--unittests/baseplatformtests.py22
2 files changed, 13 insertions, 13 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index 5a6e88b1f..12eafd595 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -1369,8 +1369,8 @@ class AllPlatformTests(BasePlatformTests):
targets = self.introspect('--targets')
# This assumes all of the targets support lto
for t in targets:
- for s in t['target_sources']:
- self.assertTrue(expected.issubset(set(s['parameters'])), f'Incorrect values for {t["name"]}')
+ for src in t['target_sources']:
+ self.assertTrue(expected.issubset(set(src['parameters'])), f'Incorrect values for {t["name"]}')
def test_dist_git(self):
if not shutil.which('git'):
diff --git a/unittests/baseplatformtests.py b/unittests/baseplatformtests.py
index 4b16e7d82..3008eb731 100644
--- a/unittests/baseplatformtests.py
+++ b/unittests/baseplatformtests.py
@@ -171,22 +171,22 @@ class BasePlatformTests(TestCase):
env = os.environ.copy()
env.update(override_envvars)
- p = subprocess.run(command, stdout=subprocess.PIPE,
- stderr=subprocess.STDOUT if stderr else subprocess.PIPE,
- env=env,
- encoding='utf-8',
- text=True, cwd=workdir, timeout=60 * 5)
+ proc = subprocess.run(command, stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT if stderr else subprocess.PIPE,
+ env=env,
+ encoding='utf-8',
+ text=True, cwd=workdir, timeout=60 * 5)
print('$', join_args(command))
print('stdout:')
- print(p.stdout)
+ print(proc.stdout)
if not stderr:
print('stderr:')
- print(p.stderr)
- if p.returncode != 0:
- if 'MESON_SKIP_TEST' in p.stdout:
+ print(proc.stderr)
+ if proc.returncode != 0:
+ if 'MESON_SKIP_TEST' in proc.stdout:
raise SkipTest('Project requested skipping.')
- raise subprocess.CalledProcessError(p.returncode, command, output=p.stdout)
- return p.stdout
+ raise subprocess.CalledProcessError(proc.returncode, command, output=proc.stdout)
+ return proc.stdout
def init(self, srcdir, *,
extra_args=None,