Changeset 451bb19 in flex_extract.git for python/tools.py


Ignore:
Timestamp:
Aug 31, 2018, 4:12:03 PM (6 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
763fcf6
Parents:
2ad8ea5
Message:

added fail and success test for the submit_job_to_ecserver function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tools.py

    r54a8a01 r451bb19  
    500500
    501501    @Return:
    502         <nothing>
     502        rcode: integer
     503            Resulting code of subprocess.check_call.
    503504    '''
    504505
    505506    try:
    506         subprocess.check_call(['ecaccess-job-submit',
    507                                '-queueName', target,
    508                                jobname])
     507        rcode = subprocess.check_call(['ecaccess-job-submit',
     508                                       '-queueName', target,
     509                                       jobname])
    509510    except subprocess.CalledProcessError as e:
    510511        print '... ERROR CODE: ', e.returncode
    511512        sys.exit('... ECACCESS-JOB-SUBMIT FAILED!')
    512513
    513     return
     514    return rcode
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG