summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2021-10-15 01:05:30 -0400
committerJohn Kacur <jkacur@redhat.com>2021-10-15 01:05:30 -0400
commitace8da2c1fb9b86fe01339b826f11f648e43418d (patch)
tree712ed182c28de94bf94193d680fa707d765fe44e
parentecb4cfc453d9c5b95816af5bf614f2a0261009bf (diff)
downloadrt-tests-ace8da2c1fb9b86fe01339b826f11f648e43418d.tar.gz
rt-tests:hwlatdetect.py: Remove unnecessary 'not'
Remove unnecessary 'not' Signed-off-by: John Kacur <jkacur@redhat.com>
-rwxr-xr-xsrc/hwlatdetect/hwlatdetect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hwlatdetect/hwlatdetect.py b/src/hwlatdetect/hwlatdetect.py
index 66e132b..5a66280 100755
--- a/src/hwlatdetect/hwlatdetect.py
+++ b/src/hwlatdetect/hwlatdetect.py
@@ -66,7 +66,7 @@ class DebugFS:
return True
debug("umounting debugfs")
cmd = ['/bin/umount', self.mountpoint]
- self.mounted = not (subprocess.call(cmd) == 0)
+ self.mounted = subprocess.call(cmd) != 0
if self.mounted:
raise RuntimeError("Failed to umount debugfs")
return not self.mounted