~c-e-pidcott/maus/devel

« back to all changes in this revision

Viewing changes to tests/integration/test_optics/test_optics.py

  • Committer: Chris Rogers
  • Date: 2012-10-03 07:19:33 UTC
  • mfrom: (659.1.40 release-candidate)
  • Revision ID: chris.rogers@stfc.ac.uk-20121003071933-kgrhvl1ec6w2jmug
Tags: MAUS-v0.3.3
MAUS-v0.3.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
    Runs optics application and produces some output
18
18
    """
19
19
    os.chdir(os.getenv('MAUS_ROOT_DIR')+'/tests/integration/test_optics')
20
 
    print 'Running optics test', test,
 
20
    print 'Running optics test', test, 
 
21
    log = os.path.expandvars('$MAUS_ROOT_DIR/tmp/log.'+test)
 
22
    print 'logging in ', log,
21
23
    proc = subprocess.Popen(['./optics', 'files/cards.'+test], \
22
 
                                                                                                                                                                                stdout = open('log.'+test, 'w'))
 
24
                                                                                                                                                                                stdout = open(log, 'w'))
23
25
    proc.wait()
24
26
    print 'with return code', proc.returncode
25
27
    return proc.returncode