diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-03-13 18:27:11 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-03-13 18:27:11 +0200 |
commit | 61a0f8f9cc2592dc39bb71a88c61d8da05771da0 (patch) | |
tree | 002b35ff90f69cc5688816b94ec8fee6b432ce4e /contrib/devtools/test-symbol-check.py | |
parent | e0bc27a14ceb18bfe3dd9ebdae6bef447c4ec922 (diff) | |
download | bitcoin-61a0f8f9cc2592dc39bb71a88c61d8da05771da0.tar.xz |
test: Cleanup test files in test-{security,symbol}-check.py
Diffstat (limited to 'contrib/devtools/test-symbol-check.py')
-rwxr-xr-x | contrib/devtools/test-symbol-check.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/devtools/test-symbol-check.py b/contrib/devtools/test-symbol-check.py index ee7bfc9805..6bea5d90f8 100755 --- a/contrib/devtools/test-symbol-check.py +++ b/contrib/devtools/test-symbol-check.py @@ -5,12 +5,15 @@ ''' Test script for symbol-check.py ''' +import os import subprocess import unittest def call_symbol_check(cc, source, executable, options): subprocess.run([cc,source,'-o',executable] + options, check=True) p = subprocess.run(['./contrib/devtools/symbol-check.py',executable], stdout=subprocess.PIPE, universal_newlines=True) + os.remove(source) + os.remove(executable) return (p.returncode, p.stdout.rstrip()) def get_machine(cc): |