Ignore:
Timestamp:
Aug 6, 2018, 2:05:02 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
ff593a3
Parents:
37fe352
Message:

Better handling of missing configurations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/settings.py

    r37fe352 r28582b2  
    33import os
    44import sys
     5import tools
    56
    67try :
     
    8586
    8687        make = "make" if not force else ("make -j%i" % jobs)
     88
     89def validate():
     90        make_ret, _ = tools.make( ".validate", error_file = ".validate.err", redirects  = "2> /dev/null 1> /dev/null", )
     91        if make_ret != 0:
     92                with open (".validate.err", "r") as myfile:
     93                        error=myfile.read()
     94                print('ERROR: Invalid configuration', file=sys.stderr)
     95                print("       verify returned : \n%s" % error, file=sys.stderr)
     96                tools.rm("%s/.validate.err" % BUILDDIR)
     97                sys.exit(1)
     98
     99        tools.rm("%s/.validate.err" % BUILDDIR)
Note: See TracChangeset for help on using the changeset viewer.