[PATCH] D64251: Don't depend on psutil on AIX

Dan Liew via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 21:21:25 PDT 2019


delcypher added inline comments.


================
Comment at: llvm/utils/lit/lit/LitConfig.py:81
+    @property
+    def killProcessAndChildrenIsSupported(self):
+        """
----------------
Sorry to be pedantic but this (`LitConfig.killProcessAndChildrenIsSupported`) should be called `maxIndividualTestTimeIsSupported` to be consistent with the rest of `LitConfig`'s public interface. The name `killProcessAndChildrenIsSupported` is leaking implementation details.


================
Comment at: llvm/utils/lit/lit/util.py:426
 
+def killProcessAndChildrenIsSupported(llvm_config):
+    """
----------------
I don't really like how we're now coupling this function with the `LitConfig` object just so we can print out the text `Found python psutil module`. Do we actually need to print out that message? If the tests don't rely on this I either suggest we remove this.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64251/new/

https://reviews.llvm.org/D64251





More information about the llvm-commits mailing list