File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -69,12 +69,17 @@ def runTest(self):
69
69
src_path = self .util .get_distro_src ('kernel' , '/root' , "-bp" )
70
70
elif self .distro_name == 'sles' :
71
71
src_path = self .util .get_distro_src ('kernel-default' , '/root' , "-bp" )
72
+ src_path_base = src_path
72
73
out = self .cv_HOST .host_run_command (f"ls { src_path } " )
73
74
for line in out :
74
75
if line .startswith ("linux-" ):
75
76
src_path = os .path .join (src_path , line )
76
77
break
77
78
log .info ("\n \n source path = %s" % src_path )
79
+ self .cv_HOST .host_run_command ('mkdir -p /root/kernel' )
80
+ self .cv_HOST .host_run_command ('mv %s /root/kernel/linux' % src_path )
81
+ self .cv_HOST .host_run_command ('rm -rf %s' % src_path_base )
82
+ src_path = '/root/kernel/linux'
78
83
log .info ("\n adding gcov_param...." )
79
84
self .kernel_config (src_path )
80
85
log .info ("Building the new kernel..." )
Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ def setUp(self):
53
53
self .util = OpTestUtil (OpTestConfiguration .conf )
54
54
self .c = self .cv_SYSTEM .cv_HOST .get_ssh_connection ()
55
55
self .distro = self .util .distro_name ()
56
- self .k_version = "" .join (self .cv_HOST .host_run_command ("uname -r" ))
57
56
58
57
def runTest (self ):
59
58
'''
@@ -102,8 +101,7 @@ def runTest(self):
102
101
Running the test
103
102
'''
104
103
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'
107
105
self .cv_HOST .host_run_command (f"cd { src_path } " )
108
106
src_path = "" .join (self .cv_HOST .host_run_command ("pwd" ))
109
107
temp_dir = tempfile .mkdtemp (prefix = "Lcov_result_" )
You can’t perform that action at this time.
0 commit comments