Skip to content

Commit

Permalink
Merge pull request #834 from PraveenPenguin/fix_skiptest
Browse files Browse the repository at this point in the history
Added logic to avoid building gcov kernel in case it already configured
  • Loading branch information
PraveenPenguin authored Apr 29, 2024
2 parents b89e54d + 5df334a commit b1fad2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testcases/GcovSetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ def runTest(self):
'''
Running the gcov test
'''
path = " /sys/kernel/debug/gcov/reset"
res = self.cv_HOST.host_run_command("if [ -f %s ];then echo 'true';else echo 'false';fi" % path)
if 'true' in res:
self.skipTest("Skip Gcov Setup as system already booted with Gcov Kernel")
self.distro_name = self.util.distro_name()
log.info("OS: %s" %self.distro_name)
if self.distro_name == 'rhel':
Expand Down

0 comments on commit b1fad2f

Please sign in to comment.