From: vsr Date: Mon, 16 Nov 2009 13:34:13 +0000 (+0000) Subject: Fix salome_test.py (check SALOME version properly to avoid failure on series 4x) X-Git-Tag: V5_1_3rc3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f745ba2bc90b700fc1b5c97f508bebd92e16e9c7;p=modules%2Fkernel.git Fix salome_test.py (check SALOME version properly to avoid failure on series 4x) --- diff --git a/src/KERNEL_PY/salome_test.py b/src/KERNEL_PY/salome_test.py index c0818f45f..697feb2cf 100755 --- a/src/KERNEL_PY/salome_test.py +++ b/src/KERNEL_PY/salome_test.py @@ -261,8 +261,9 @@ print print "============= Test Supervisor =============================" print import salome_version -versions = salome_version.getVersions() -if versions[0] < 5: +version = salome_version.getVersions("GUI")[0] +if not version: version = salome_version.getVersions("KERNEL")[0] +if version < 5: # SUPERV module is avaiable comp = catalog.GetComponent("SUPERV") if comp is None: