Skip to content

Commit

Permalink
smt.py: Fixed the testcase
Browse files Browse the repository at this point in the history
Failing when it is checking for distro release and
distro version comparision.So fixed the issue

Signed-off-by: Shirisha G <[email protected]>
  • Loading branch information
shirishaganta1 committed Feb 8, 2024
1 parent fc3e87c commit 63eec1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workload/smt.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ def setUp(self):
distro_ver = self.detected_distro.version
distro_rel = self.detected_distro.release
if distro_name == "rhel":
if (distro_ver == "7" or
(distro_ver == "8" and distro_rel < "4")):
if (distro_ver == 7 or
(distro_ver == 8 and distro_rel < 4)):
self.cancel("smtstate tool is supported only after RHEL8.4")
elif distro_name == "SuSE":
if (distro_ver == "12" or (distro_ver == "15" and distro_rel < 3)):
if (distro_ver == 12 or (distro_ver == 15 and distro_rel < 3)):
self.cancel("smtstate tool is supported only after SLES15 SP3")
else:
self.cancel("Test case is supported only on RHEL and SLES")
Expand Down

0 comments on commit 63eec1e

Please sign in to comment.