Ignore:
Timestamp:
06/02/21 11:03:35 (3 years ago)
Author:
jderouillat
Message:

Update Python error management. Importing unit test from trunk.

Location:
XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/COMPILE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/COMPILE/compile_irene

    r1945 r2139  
    11#!/bin/bash 
    22 
    3 set -x  
     3#set -x  
    44 
    55export revision=$(svn info --show-item revision .. 2>&1) 
  • XIOS/dev/dev_ym/XIOS_COUPLING/xios_test_suite/COMPILE/config_compile.py

    r2036 r2139  
    88def OSinfo(runthis): 
    99        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: 
    1313                print(red(runthis+" FAILED")) 
    14                 print(theInfo) 
     14                print(theErr) 
    1515                sys.exit() 
    1616 
Note: See TracChangeset for help on using the changeset viewer.