Skip to content

Commit 9593c02

Browse files
Moved testcase logic to use generic kernel path
Moved testcase logic to use generic kernel path which can help user to not have diffrent path Signed-off-by: Praveen K Pandey <[email protected]>
1 parent 35ee74b commit 9593c02

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

testcases/GcovSetup.py

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def runTest(self):
7575
src_path = os.path.join(src_path, line)
7676
break
7777
log.info("\n\nsource path = %s" %src_path)
78+
self.cv_HOST.host_run_command('mv %s /root/kernel/linux' %src_path)
79+
src_path = '/root/kernel/linux'
7880
log.info("\nadding gcov_param....")
7981
self.kernel_config(src_path)
8082
log.info("Building the new kernel...")

testcases/Lcov.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def setUp(self):
5353
self.util = OpTestUtil(OpTestConfiguration.conf)
5454
self.c = self.cv_SYSTEM.cv_HOST.get_ssh_connection()
5555
self.distro = self.util.distro_name()
56-
self.k_version = "".join(self.cv_HOST.host_run_command("uname -r"))
5756

5857
def runTest(self):
5958
'''
@@ -102,8 +101,7 @@ def runTest(self):
102101
Running the test
103102
'''
104103
self.c = self.cv_SYSTEM.cv_HOST.get_ssh_connection()
105-
self.k_version = "".join(self.cv_HOST.host_run_command("uname -r"))
106-
src_path = f'/root/kernel-{self.k_version}*/linux-{self.k_version}*'
104+
src_path = f'/root/kernel/linux'
107105
self.cv_HOST.host_run_command(f"cd {src_path}")
108106
src_path = "".join(self.cv_HOST.host_run_command("pwd"))
109107
temp_dir = tempfile.mkdtemp(prefix="Lcov_result_")

0 commit comments

Comments
 (0)