mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-11-04 09:02:12 +00:00 
			
		
		
		
	instrumentation/dmesg: Fix use of devlib APIs
I missed these call sites when porting this from WA2.
This commit is contained in:
		@@ -44,8 +44,8 @@ class DmesgInstrument(Instrument):
 | 
			
		||||
 | 
			
		||||
    def setup(self, context):
 | 
			
		||||
        if self.loglevel:
 | 
			
		||||
            self.old_loglevel = self.target.get_sysfile_value(self.loglevel_file)
 | 
			
		||||
            self.target.set_sysfile_value(self.loglevel_file, self.loglevel, verify=False)
 | 
			
		||||
            self.old_loglevel = self.target.read_int(self.loglevel_file)
 | 
			
		||||
            self.target.write_value(self.loglevel_file, self.loglevel, verify=False)
 | 
			
		||||
        self.before_file = _f(os.path.join(context.output_directory, 'dmesg', 'before'))
 | 
			
		||||
        self.after_file = _f(os.path.join(context.output_directory, 'dmesg', 'after'))
 | 
			
		||||
 | 
			
		||||
@@ -64,4 +64,4 @@ class DmesgInstrument(Instrument):
 | 
			
		||||
 | 
			
		||||
    def teardown(self, context):  # pylint: disable=unused-argument
 | 
			
		||||
        if self.loglevel:
 | 
			
		||||
            self.target.set_sysfile_value(self.loglevel_file, self.old_loglevel, verify=False)
 | 
			
		||||
            self.target.write_value(self.loglevel_file, self.old_loglevel, verify=False)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user