Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Jul 29, 2024
1 parent d754adf commit 6a600f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions run_project_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,7 @@ def load_test_json(t: TestDef, stdout_mandatory: bool, skip_category: bool = Fal
exclude = False
opt_tuple = [(x[0], x[1]) for x in i]
for j in matrix['exclude']:
ex_list = list(j.items())
if all(x in opt_tuple for x in ex_list):
if all(x in opt_tuple for x in j.items()):
exclude = True
break

Expand Down
3 changes: 1 addition & 2 deletions unittests/allplatformstests.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,7 @@ def test_install_introspection_multiple_outputs(self):
def read_install_logs(self):
# Find logged files and directories
with Path(self.builddir, 'meson-logs', 'install-log.txt').open(encoding='utf-8') as f:
return [Path(l.strip()) for l in filter(lambda l: not l.startswith('#'),
f.readlines())]
return [Path(l.strip()) for l in f.readlines() if not l.startswith('#')]

def test_install_log_content(self):
'''
Expand Down

0 comments on commit 6a600f1

Please sign in to comment.