]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa: Add mypy to make check
authorSebastian Wagner <sewagner@redhat.com>
Fri, 18 Jun 2021 09:35:43 +0000 (11:35 +0200)
committerSebastian Wagner <sewagner@redhat.com>
Fri, 2 Jul 2021 08:35:18 +0000 (10:35 +0200)
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
qa/CMakeLists.txt
qa/workunits/fs/misc/filelock_interrupt.py

index 485c5b5532608c7d4be4a94768e8c64dacb58952..a72f9088408ac8c39fdbbc26168f33185c44c0fb 100644 (file)
@@ -5,5 +5,5 @@ endif()
 
 if(WITH_TESTS)
   include(AddCephTest)
-  add_tox_test(qa TOX_ENVS py3 flake8 import-tasks)
+  add_tox_test(qa TOX_ENVS py3 flake8 import-tasks mypy)
 endif()
index 5ebc480ba8e314f5a5a674c0dbab747fb368317a..b261d74fbc0cf9794ecc3cf8f763abe33b596acc 100755 (executable)
@@ -23,9 +23,9 @@ def timeout(seconds):
 """
 introduced by Linux 3.15
 """
-fcntl.F_OFD_GETLK = 36
-fcntl.F_OFD_SETLK = 37
-fcntl.F_OFD_SETLKW = 38
+setattr(fcntl, "F_OFD_GETLK", 36)
+setattr(fcntl, "F_OFD_SETLK", 37)
+setattr(fcntl, "F_OFD_SETLKW", 38)
 
 
 def main():