diff options
author | John Kacur <jkacur@redhat.com> | 2021-10-15 01:05:30 -0400 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2021-10-15 01:05:30 -0400 |
commit | ace8da2c1fb9b86fe01339b826f11f648e43418d (patch) | |
tree | 712ed182c28de94bf94193d680fa707d765fe44e | |
parent | ecb4cfc453d9c5b95816af5bf614f2a0261009bf (diff) | |
download | rt-tests-ace8da2c1fb9b86fe01339b826f11f648e43418d.tar.gz |
rt-tests:hwlatdetect.py: Remove unnecessary 'not'
Remove unnecessary 'not'
Signed-off-by: John Kacur <jkacur@redhat.com>
-rwxr-xr-x | src/hwlatdetect/hwlatdetect.py | 2 |
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 |