Changeset 64cf353 in flex_extract.git for python/testsuite.py


Ignore:
Timestamp:
Feb 8, 2018, 9:54:05 PM (6 years ago)
Author:
Anne Philipp <bscannephilipp@…>
Branches:
master, ctbto, dev
Children:
02c8c50
Parents:
6180177
Message:

pep8 changes + documentation added + minor code style changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/testsuite.py

    rd69b677 r64cf353  
    22
    33# This software is licensed under the terms of the Apache Licence Version 2.0
    4 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 
    5 # 
     4# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
     5#
    66# Leopold Haimberger, Dec 2015
    77#
    88# Functionality provided: This script triggers the ECMWFDATA test suite. Call with
    99# testsuite.py [test group]
    10 # 
     10#
    1111#
    1212# Further documentation may be obtained from www.flexpart.eu
    13 # 
     13#
    1414# Test groups are specified in testsuite.json
    1515# in addition to a standard python 2.6 or 2.7 installation the following packages need to be installed
     
    2121import json
    2222import subprocess
     23
    2324try:
    2425    taskfile=open('testsuite.json')
     
    4142    os.makedirs('../test')
    4243if len(sys.argv)>1:
    43     groups=sys.argv[1:] 
     44    groups=sys.argv[1:]
    4445else:
    4546    groups=['xinstall','default','ops','work','cv','fc']#,'hires']
     
    5354    garglist=[]
    5455    for ttk,ttv in tv.iteritems():
    55         if isinstance(ttv,basestring):   
     56        if isinstance(ttv,basestring):
    5657            if ttk!='script':
    5758                garglist.append('--'+ttk)
     
    6465            arglist=[]
    6566            for tttk,tttv in ttv.iteritems():
    66                 if isinstance(tttv,basestring):   
     67                if isinstance(tttv,basestring):
    6768                        arglist.append('--'+tttk)
    6869                        if '$' in tttv[0]:
    69                             arglist.append(os.path.expandvars(tttv))                       
     70                            arglist.append(os.path.expandvars(tttv))
    7071                        else:
    7172                            arglist.append(tttv)
     
    8687print str(jobcounter-jobfailed)+' successful, '+str(jobfailed)+' failed'
    8788print 'If tasks have been submitted via ECACCESS please check emails'
    88                                        
     89
    8990#print tasks
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG