mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixup! Bytecode compare fix
This commit is contained in:
parent
a44fbcf111
commit
1a94247851
@ -153,19 +153,23 @@ if __name__ == '__main__':
|
|||||||
# ignore the test with broken utf-8 encoding and experimental tests
|
# ignore the test with broken utf-8 encoding and experimental tests
|
||||||
exclude_files = {
|
exclude_files = {
|
||||||
"invalid_utf8_sequence.sol",
|
"invalid_utf8_sequence.sol",
|
||||||
"stub.sol"
|
}
|
||||||
|
|
||||||
|
exclude_subdirs = {
|
||||||
|
"_build",
|
||||||
|
"compilationTests",
|
||||||
|
"experimental"
|
||||||
}
|
}
|
||||||
|
|
||||||
if isfile(path):
|
if isfile(path):
|
||||||
extract_and_write(path, options.language)
|
extract_and_write(path, options.language)
|
||||||
else:
|
else:
|
||||||
for root, subdirs, files in os.walk(path):
|
for root, subdirs, files in os.walk(path, topdown=True):
|
||||||
if '_build' in subdirs:
|
# exclude specific directories from being recursed further
|
||||||
subdirs.remove('_build')
|
subdirs[:] = [d for d in subdirs if d not in exclude_subdirs]
|
||||||
if 'compilationTests' in subdirs:
|
|
||||||
subdirs.remove('compilationTests')
|
|
||||||
for f in files:
|
for f in files:
|
||||||
if basename(f) in exclude_files:
|
if basename(f) in exclude_files:
|
||||||
continue
|
continue
|
||||||
path = join(root, f)
|
path = join(root, f)
|
||||||
|
print(path)
|
||||||
extract_and_write(path, options.language)
|
extract_and_write(path, options.language)
|
||||||
|
Loading…
Reference in New Issue
Block a user