aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2022-01-14 14:00:54 -0500
committerJohn Kacur <jkacur@redhat.com>2022-01-14 14:24:48 -0500
commit3218c5f39603c4cb6ad8e5caf9fe675f2ea344d1 (patch)
tree5f23633971c78900128ff58f17e2f557d8e5dcf6
parentd83a407fb55bf2a759097f95a8e8337699b9dfa2 (diff)
downloadrteval-3218c5f39603c4cb6ad8e5caf9fe675f2ea344d1.tar.gz
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>
-rw-r--r--rteval/modules/measurement/cyclictest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rteval/modules/measurement/cyclictest.py b/rteval/modules/measurement/cyclictest.py
index cc74b46..af8adee 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