From: Yohann Pipeau Date: Mon, 11 Apr 2022 16:12:10 +0000 (+0200) Subject: The script 'validateDataSet.py' has a return code different of zero if the input... X-Git-Tag: merge_uncertainty_odysee_1210~98 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=26692e31ff85ef459cef3e238f691f13e3fd3766;p=tools%2Feficas.git The script 'validateDataSet.py' has a return code different of zero if the input file is invalid --- diff --git a/Tools/validateDataSet.py b/Tools/validateDataSet.py index 763f0fc0..433ad8d2 100755 --- a/Tools/validateDataSet.py +++ b/Tools/validateDataSet.py @@ -33,4 +33,9 @@ import os sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'../')) from InterfaceQT4 import eficas_go -eficas_go.validateDataSet(code='NonConnu') +if eficas_go.validateDataSet(code='NonConnu'): + print('Fichier valide') + sys.exit(0) +else: + print('Fichier invalide') + sys.exit(1)