Skip to content

Commit

Permalink
remove testinspector to measure time of run
Browse files Browse the repository at this point in the history
  • Loading branch information
jscotka committed Feb 5, 2024
1 parent 4c10141 commit e4f7b55
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions test/common/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1519,32 +1519,32 @@ def nonDestructiveSetup(self):
m = self.machine

# run TestInspector as last cleanup action
def test_inspector_check():
print(" ---------- RESULTS OF TEST INSPECTOR ---------- ")
inspected_data = self.test_inspecor.check()
for k, v in inspected_data.items():
if v:
pprint(f">> Test Inspector FAIL - ({k}):")
pprint(v)
print(" ---------- END OF TEST INSPECTOR ---------- ")
exclude_dict = {}
exclude_dict["ListEtcDir"] = ["/etc/systemd/system/cockpit.service.d/notls.conf",
"/etc/lvm/archive",
"/etc/lvm/backup",
]
exclude_dict["ServiceInfo"] = ["cockpit",
"user@",
"packagekit",
"rhsm",
"realmd",
"systemd-timedated",
"systemd-hostnamed",
"systemd-logind.service",
"virtqemud",
]
self.test_inspecor = RunChecks(external_executor=m.execute, exclude_dict=exclude_dict)
self.test_inspecor.init()
self.addCleanup(test_inspector_check)
#def test_inspector_check():
# print(" ---------- RESULTS OF TEST INSPECTOR ---------- ")
# inspected_data = self.test_inspecor.check()
# for k, v in inspected_data.items():
# if v:
# pprint(f">> Test Inspector FAIL - ({k}):")
# pprint(v)
# print(" ---------- END OF TEST INSPECTOR ---------- ")
#exclude_dict = {}
#exclude_dict["ListEtcDir"] = ["/etc/systemd/system/cockpit.service.d/notls.conf",
# "/etc/lvm/archive",
# "/etc/lvm/backup",
# ]
#exclude_dict["ServiceInfo"] = ["cockpit",
# "user@",
# "packagekit",
# "rhsm",
# "realmd",
# "systemd-timedated",
# "systemd-hostnamed",
# "systemd-logind.service",
# "virtqemud",
# ]
#self.test_inspecor = RunChecks(external_executor=m.execute, exclude_dict=exclude_dict)
#self.test_inspecor.init()
#self.addCleanup(test_inspector_check)

# helps with mapping journal output to particular tests
name = "%s.%s" % (self.__class__.__name__, self._testMethodName)
Expand Down

0 comments on commit e4f7b55

Please sign in to comment.