X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=AllTestLauncherSat.py;h=eaa1a967b5054a52b30297dfd3095c4ea38cc061;hb=25deab4c282a5738110cbb0dc0d3b480d4612ed3;hp=8b74f2fb4d3e8d9ff2f8c950ae432bf03637b4cd;hpb=a73105d0c22ff213d31a6502a0b4cf1b77bb754a;p=tools%2Fsat.git diff --git a/AllTestLauncherSat.py b/AllTestLauncherSat.py index 8b74f2f..eaa1a96 100755 --- a/AllTestLauncherSat.py +++ b/AllTestLauncherSat.py @@ -58,6 +58,7 @@ import argparse as AP import glob import fnmatch import pprint as PP #pretty print +import src debug = False verboseImport = True @@ -75,9 +76,9 @@ sys.path.insert(0, satdir) sys.path.insert(0, srcdir) # TODO remove that sys.path.insert(0, cmdsdir) # TODO remove that -_user = os.environ['USER'] +_user = src.architecture.get_user() # wambeke is christian at home -_developpers = ["christian", "wambeke",] # ...who wants +_developers = ["christian", "wambeke",] # ...who wants def errPrint(aStr): """stderr to avoid write in html or xml file log message""" @@ -148,10 +149,10 @@ def format_exception(msg, limit=None, trace=None): """ Format a stack trace and the exception information. as traceback.format_exception(), - with all traceback only if user in ._developpers + with all traceback only if user in ._developers """ etype, value, tb = sys.exc_info() - if _user in _developpers: + if _user in _developers: res = "\n" + msg if tb: res += "\nTraceback (most recent call last):\n"