Skip to content

Commit

Permalink
version check fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsayad committed Jan 6, 2025
1 parent 96c2d0c commit 038f74b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/TestHarness/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def getSlepcVersion(libmesh_dir):
major_version = getLibMeshConfigOption(libmesh_dir, 'slepc_major')
minor_version = getLibMeshConfigOption(libmesh_dir, 'slepc_minor')
subminor_version = getLibMeshConfigOption(libmesh_dir, 'slepc_subminor')
if len(major_version) != 1 or len(minor_version) != 1 or len(major_version) != 1:
if len(major_version) != 1 or len(minor_version) != 1 or len(subminor_version) != 1:
return None

return major_version.pop() + '.' + minor_version.pop() + '.' + subminor_version.pop()
Expand All @@ -494,7 +494,7 @@ def getVTKVersion(libmesh_dir):
major_version = getLibMeshConfigOption(libmesh_dir, 'vtk_major')
minor_version = getLibMeshConfigOption(libmesh_dir, 'vtk_minor')
subminor_version = getLibMeshConfigOption(libmesh_dir, 'vtk_subminor')
if len(major_version) != 1 or len(minor_version) != 1 or len(major_version) != 1:
if len(major_version) != 1 or len(minor_version) != 1 or len(subminor_version) != 1:
return None

return major_version.pop() + '.' + minor_version.pop() + '.' + subminor_version.pop()
Expand All @@ -509,7 +509,7 @@ def getLibtorchVersion(moose_dir):
major_version = getConfigOption(filenames, 'libtorch_major', LIBTORCH_OPTIONS)
minor_version = getConfigOption(filenames, 'libtorch_minor', LIBTORCH_OPTIONS)

if len(major_version) != 1 or len(minor_version) != 1 or len(major_version) != 1:
if len(major_version) != 1 or len(minor_version) != 1:
return None

return major_version.pop() + '.' + minor_version.pop()
Expand Down

0 comments on commit 038f74b

Please sign in to comment.