Changeset 1737 for XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/user_config.py
- Timestamp:
- 10/08/19 20:23:21 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/user_config.py
r1734 r1737 13 13 if folder.startswith("test_"): 14 14 test_list.append(folder) 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 FNULL = open(os.devnull, 'w') 16 retcode = subprocess.call(['bash', 'setup.sh'], stdout=FNULL, stderr=subprocess.STDOUT) 17 if retcode!=0: 18 print("setup.sh failed") 19 print >> sys.stderr, retcode 20 sys.exit() 24 21 25 22 26 23 f=open("CMakeLists.txt", "w") 27 24 28 f.write("############################## \n")29 f.write("# file generated by setup.py #\n")30 f.write("# DO NOT modify #\n")31 f.write("############################## \n\n")25 f.write("####################################\n") 26 f.write("# file generated by user_config.py #\n") 27 f.write("# DO NOT modify #\n") 28 f.write("####################################\n\n") 32 29 33 30 f.write("cmake_minimum_required(VERSION 2.8.12.2)\n\n")
Note: See TracChangeset
for help on using the changeset viewer.