From 26692e31ff85ef459cef3e238f691f13e3fd3766 Mon Sep 17 00:00:00 2001 From: Yohann Pipeau Date: Mon, 11 Apr 2022 18:12:10 +0200 Subject: [PATCH] The script 'validateDataSet.py' has a return code different of zero if the input file is invalid --- Tools/validateDataSet.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.39.2