Changeset ad4832f1 for tests


Ignore:
Timestamp:
Nov 12, 2020, 12:55:06 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
d6ad99e
Parents:
ead174a
Message:

Fix check in regenerate expected for inconsistent settings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/test.py

    read174a rad4832f1  
    9999
    100100                                        # print a warning if it users didn't ask for a specific architecture
    101                                         if not options.arch:
     101                                        found_arch = [f.arch for f in found if f.arch]
     102                                        if found_arch and not options.arch:
    102103                                                print('WARNING: "%s", test has architecture specific expected files but --arch was not specified, regenerating only for current host' % testname, file=sys.stderr)
    103104
    104105
    105106                                        # print a warning if it users didn't ask for a specific ast version
    106                                         if not options.ast:
     107                                        found_astv = [f.astv for f in found if f.astv]
     108                                        if found_astv and not options.ast:
    107109                                                print('WARNING: "%s", test has ast version specific expected files but --ast was not specified, regenerating only for current ast' % testname, file=sys.stderr)
    108110
Note: See TracChangeset for help on using the changeset viewer.