From a44fbcf111488bfdb728645610979606efe5316a Mon Sep 17 00:00:00 2001 From: Nikola Matic Date: Tue, 5 Sep 2023 15:28:54 +0200 Subject: [PATCH] Bytecode compare fix --- scripts/isolate_tests.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/isolate_tests.py b/scripts/isolate_tests.py index e641d58d1..65d1eec11 100755 --- a/scripts/isolate_tests.py +++ b/scripts/isolate_tests.py @@ -150,6 +150,12 @@ if __name__ == '__main__': options = parser.parse_args() path = options.path + # ignore the test with broken utf-8 encoding and experimental tests + exclude_files = { + "invalid_utf8_sequence.sol", + "stub.sol" + } + if isfile(path): extract_and_write(path, options.language) else: @@ -159,7 +165,7 @@ if __name__ == '__main__': if 'compilationTests' in subdirs: subdirs.remove('compilationTests') for f in files: - if basename(f) == "invalid_utf8_sequence.sol": - continue # ignore the test with broken utf-8 encoding + if basename(f) in exclude_files: + continue path = join(root, f) extract_and_write(path, options.language)