Changeset 1bb2488 for tests/test.py


Ignore:
Timestamp:
Mar 26, 2019, 11:15:49 AM (3 years ago)
Author:
tdelisle <tdelisle@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
2b10f95, ae6b6cf
Parents:
5bf1f3e
Message:

No longer need to use popen and signal handling in test.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/test.py

    r5bf1f3e r1bb2488  
    149149                        if settings.dry_run or is_exe(exe_file):
    150150                                # run test
    151                                 retcode = run(exe_file, out_file, in_file)
     151                                retcode, _ = sh(exe_file, output=out_file, input=in_file, timeout=True)
    152152                        else :
    153153                                # simply cat the result into the output
     
    185185# run a single test and handle the errors, outputs, printing, exception handling, etc.
    186186def run_test_worker(t) :
    187         with SignalHandling():
     187        try :
    188188                # print formated name
    189189                name_txt = '{0:{width}}  '.format(t.target(), width=settings.output_width)
     
    205205                sys.stderr.flush()
    206206
    207         return retcode != TestResult.SUCCESS
     207                return retcode != TestResult.SUCCESS
     208        except KeyboardInterrupt:
     209                False
    208210
    209211# run the given list of tests with the given parameters
     
    213215
    214216        # create the executor for our jobs and handle the signal properly
    215         pool = setup_pool(jobs)
     217        pool = multiprocessing.Pool(jobs)
    216218
    217219        # for each test to run
Note: See TracChangeset for help on using the changeset viewer.