Skip to content

Commit

Permalink
meson command tests: clean up temporary script upon completion
Browse files Browse the repository at this point in the history
  • Loading branch information
amcn authored and dcbaker committed Sep 23, 2024
1 parent 5102f43 commit bc30d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_meson_command_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@ def test_meson_runpython(self):
with open(script_file, 'w') as f:
f.write('#!/usr/bin/env python3\n\n')
f.write(f'{test_command}\n')
self.addCleanup(os.remove, script_file)

for cmd in [['-c', test_command, 'fake argument'], [script_file, 'fake argument']]:
pyout = self._run(python_command + cmd)
mesonout = self._run(python_command + [meson_command, 'runpython'] + cmd, env=env)
self.assertEqual(pyout, mesonout)


if __name__ == '__main__':
print('Meson build system', meson_version, 'Command Tests')
raise SystemExit(unittest.main(buffer=True))

0 comments on commit bc30d59

Please sign in to comment.