Skip to content

Commit

Permalink
test: use subprocess.run() to make debugging easier
Browse files Browse the repository at this point in the history
Otherwise we'd get the output only when the test passed, which is not
very useful.
  • Loading branch information
mrc0mmand authored and vmihalko committed Jan 30, 2024
1 parent 081128e commit 6412826
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/polkitbackend/polkitbackendjsauthoritytest-wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,10 @@ def test_polkitbackendjsauthoritytest(self):
print('\n %s... not found' % test_path)
test_path = self.top_build_dir + '/test/polkitbackend/polkitbackendjsauthoritytest'

out = subprocess.check_output(self.mocklibc_path + ' ' + test_path,
stderr=subprocess.STDOUT,
shell=True,
universal_newlines=True)
print(out)
subprocess.run(self.mocklibc_path + ' ' + test_path,
check=True,
shell=True,
universal_newlines=True)

if __name__ == '__main__':
# avoid writing to stderr
Expand Down

0 comments on commit 6412826

Please sign in to comment.