fixup! Bytecode compare fix

This commit is contained in:
Nikola Matic 2023-09-06 13:24:40 +02:00
parent a44fbcf111
commit 1a94247851

View File

@ -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)