Changeset 1734 for XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/user_config.py
- Timestamp:
- 10/04/19 17:36:51 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/user_config.py
r1729 r1734 1 1 import os 2 2 import sys 3 import subprocess 3 4 4 5 def main(): … … 12 13 if folder.startswith("test_"): 13 14 test_list.append(folder) 14 os.system('cd '+folder+' && python setup.py') 15 # os.system('cd '+folder+' && python setup.py') 16 FNULL = open(os.devnull, 'w') 17 retcode = subprocess.call(['cd', folder, ' && python setup.py'], 18 stdout=FNULL, 19 stderr=subprocess.STDOUT) 20 21 if retcode!=0: 22 print >> sys.stderr, retcode 23 sys.exit() 15 24 16 25 … … 42 51 f.close 43 52 53 print >> sys.stderr, 0 54 sys.exit() 44 55 45 56 if __name__== "__main__":
Note: See TracChangeset
for help on using the changeset viewer.