33 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From aca562064a8d9f5927aa39bc108eac3bf4d0a56b Mon Sep 17 00:00:00 2001
 | |
| From: John Kacur <jkacur@redhat.com>
 | |
| Date: Fri, 14 Jan 2022 14:00:54 -0500
 | |
| Subject: [PATCH] rteval: Fix test misses threshold assignment
 | |
| 
 | |
| Fix case where self.__cfg.threshold has a value but
 | |
| instead of 'threshold' in self.__cfg,
 | |
| 'breaktrace' in self.__cfg.
 | |
| by just checking whether self.__cfg.threshold has a value
 | |
| if self._cfg.breaktrace does not have a value
 | |
| 
 | |
| Signed-off-by: John Kacur <jkacur@redhat.com>
 | |
| ---
 | |
|  rteval/modules/measurement/cyclictest.py | 2 +-
 | |
|  1 file changed, 1 insertion(+), 1 deletion(-)
 | |
| 
 | |
| diff --git a/rteval/modules/measurement/cyclictest.py b/rteval/modules/measurement/cyclictest.py
 | |
| index cc74b467913d..af8adeeeb402 100644
 | |
| --- a/rteval/modules/measurement/cyclictest.py
 | |
| +++ b/rteval/modules/measurement/cyclictest.py
 | |
| @@ -299,7 +299,7 @@ class Cyclictest(rtevalModulePrototype):
 | |
|          if 'breaktrace' in self.__cfg and self.__cfg.breaktrace:
 | |
|              self.__cmd.append("-b%d" % int(self.__cfg.breaktrace))
 | |
|              self.__cmd.append("--tracemark")
 | |
| -        elif 'threshold' in self.__cfg and self.__cfg.threshold:
 | |
| +        elif self.__cfg.threshold:
 | |
|              self.__cmd.append("-b%d" % int(self.__cfg.threshold))
 | |
|  
 | |
|          # Buffer for cyclictest data written to stdout
 | |
| -- 
 | |
| 2.31.1
 | |
| 
 |