Skip to content

Commit b1fad2f

Browse files
Merge pull request #834 from PraveenPenguin/fix_skiptest
Added logic to avoid building gcov kernel in case it already configured
2 parents b89e54d + 5df334a commit b1fad2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testcases/GcovSetup.py

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ def runTest(self):
5454
'''
5555
Running the gcov test
5656
'''
57+
path = " /sys/kernel/debug/gcov/reset"
58+
res = self.cv_HOST.host_run_command("if [ -f %s ];then echo 'true';else echo 'false';fi" % path)
59+
if 'true' in res:
60+
self.skipTest("Skip Gcov Setup as system already booted with Gcov Kernel")
5761
self.distro_name = self.util.distro_name()
5862
log.info("OS: %s" %self.distro_name)
5963
if self.distro_name == 'rhel':

0 commit comments

Comments
 (0)