Changeset 65583e2


Ignore:
Timestamp:
Apr 21, 2020, 2:07:20 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
62cc231
Parents:
998c106
Message:

Test script no longer prints errors longer than 1MB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/test.py

    r998c106 r65583e2  
    206206
    207207                else:
    208                         with open (out_file, "r") as myfile:
    209                                 error = myfile.read()
     208                        if os.stat(out_file).st_size < 1048576
     209                                with open (out_file, "r") as myfile:
     210                                        error = myfile.read()
     211                        else:
     212                                error = "Output log can't be read, file is bigger than 1MB, see {} for actual error\n".format(out_file)
    210213
    211214                        ret, info = core_info(exe_file)
Note: See TracChangeset for help on using the changeset viewer.