- Timestamp:
- 06/02/21 11:03:35 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/COMPILE/config_compile.py
r2036 r2139 8 8 def OSinfo(runthis): 9 9 red = lambda text: '\033[0;31m' + text + '\033[0m' 10 osstdout = subprocess.Popen(runthis, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess. STDOUT, close_fds=True)11 theInfo = osstdout.communicate()[0].strip()12 if osstdout.returncode!=0:10 osstdout = subprocess.Popen(runthis, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True) 11 theInfo, theErr = osstdout.communicate() 12 if theErr: 13 13 print(red(runthis+" FAILED")) 14 print(the Info)14 print(theErr) 15 15 sys.exit() 16 16
Note: See TracChangeset
for help on using the changeset viewer.