Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Enhance Process repr and add exit codewait-exit-code | Giampaolo Rodola | 2020-05-02 | 3 | -13/+22 |
| | | | | | Show exit code if wait() was used and also use cached name if name() fails. | ||||
* | remove Popen.wait() method (duplicate) | Giampaolo Rodola | 2020-05-02 | 2 | -12/+1 |
| | |||||
* | refactor | Giampaolo Rodola | 2020-05-02 | 1 | -16/+2 |
| | |||||
* | remove duplicate test | Giampaolo Rodola | 2020-05-02 | 1 | -9/+0 |
| | |||||
* | refactor tests | Giampaolo Rodola | 2020-05-02 | 3 | -55/+79 |
| | |||||
* | cache wait() ret val | Giampaolo Rodola | 2020-05-02 | 3 | -7/+11 |
| | |||||
* | move tests | Giampaolo Rodola | 2020-05-02 | 2 | -66/+39 |
| | |||||
* | localize variable access for speedup | Giampaolo Rodola | 2020-05-02 | 3 | -22/+35 |
| | |||||
* | handle SIGSTOP and SIGCONT | Giampaolo Rodola | 2020-05-02 | 3 | -23/+59 |
| | |||||
* | refactor wait_pid() and write unit tests | Giampaolo Rodola | 2020-05-02 | 2 | -28/+69 |
| | |||||
* | cleanup psutil mod namespace a bit | Giampaolo Rodola | 2020-05-01 | 1 | -21/+18 |
| | |||||
* | refactor signal tests | Giampaolo Rodola | 2020-05-01 | 1 | -50/+38 |
| | |||||
* | fix AttributeError | Giampaolo Rodola | 2020-05-01 | 1 | -2/+8 |
| | |||||
* | Refactor process test utils methods (#1745) | Giampaolo Rodola | 2020-05-01 | 11 | -178/+151 |
| | | | ...in order to accomodate Cygwin implementation. | ||||
* | Revert #1736: Popen inheriting from subprocess (#1744) | Giampaolo Rodola | 2020-05-01 | 3 | -75/+55 |
| | |||||
* | Per-test file cleanup and new PsutilTestCase (#1743) | Giampaolo Rodola | 2020-04-30 | 16 | -260/+256 |
| | | | | | Test files/dirs are now removed after each test. when invoked via self.get_testfn(). Until now test files were stored in a global variable and were removed at process exit, via atexit.register(), but this didn't work with parallel tests because the fork()ed workers use os._exit(0), preventing cleanup functions to run. All test classes now inherit from PsutilTestCase class, which provides the most important methods requiring an automatic cleanup (get_test_subprocess() and others). | ||||
* | See: #1709: allow per-test parallelization | Giampaolo Rodola | 2020-04-30 | 3 | -141/+148 |
| | | | | | | | | Refactor test runner.py with a saner unittest-based class hierarchy so that --parallel args affects all test suites (all, by-name, failed). Also change Makefile which now can be used like this: make test-process ARGS=--parallel | ||||
* | refactoring / rename vars | Giampaolo Rodola | 2020-04-29 | 1 | -12/+10 |
| | |||||
* | Test sub-processes cleanup and ProcessTestCase class (#1739) | Giampaolo Rodola | 2020-04-28 | 12 | -215/+260 |
| | |||||
* | show status() in __repr__ | Giampaolo Rodola | 2020-04-28 | 2 | -14/+18 |
| | |||||
* | create_zombie_proc() make it return parent so that we can kill zombie | Giampaolo Rodola | 2020-04-28 | 4 | -19/+27 |
| | |||||
* | psutil.Popen: inherit from subprocess + support wait(timeout=...) parameter ↵ | Giampaolo Rodola | 2020-04-28 | 5 | -47/+81 |
| | | | | (#1736) | ||||
* | add new termina() test util | Giampaolo Rodola | 2020-04-27 | 1 | -56/+73 |
| | |||||
* | Merge branch 'master' into devreap-children | Giampaolo Rodola | 2020-04-26 | 18 | -113/+291 |
|\ | |||||
| * | Parallel tests (UNIX) (#1709) | Giampaolo Rodola | 2020-04-26 | 18 | -113/+291 |
| | | |||||
* | | rename var | Giampaolo Rodola | 2020-04-26 | 5 | -45/+45 |
|/ | |||||
* | trick to execute atexit functions in case of SIGTERM | Giampaolo Rodola | 2020-04-25 | 1 | -21/+34 |
| | |||||
* | Get rid of TESTFN global variable (#1734) | Giampaolo Rodola | 2020-04-24 | 10 | -355/+300 |
| | |||||
* | Backport python 3 super() (#1733) | Giampaolo Rodola | 2020-04-24 | 7 | -34/+112 |
| | |||||
* | MemoryLeakTest class enhancements (#1731) | Giampaolo Rodola | 2020-04-23 | 7 | -440/+567 |
| | |||||
* | Remove useless assignment (#1728) | kaiix | 2020-04-16 | 1 | -1/+0 |
| | |||||
* | Fix handling /proc/cpuinfo without tabs (#1726) | Michał Górny | 2020-04-14 | 1 | -1/+1 |
| | | | | | | | /proc/cpuinfo uses spaces rather than tabs on ia64. Since there seems not to be any reason to require specific kind of whitespace before ':' on 'cpu mhz' line, just split on ':'. See: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/ia64/kernel/setup.c#n700 | ||||
* | sensors_fans is not available on MacOS (#1710) | crusaderky | 2020-03-04 | 1 | -1/+1 |
| | |||||
* | Fix detecting empty result in TestSystemAPIs.test_users() (#1699) | Michał Górny | 2020-02-21 | 1 | -2/+2 |
| | |||||
* | Git hook for renamed/added/deleted files + flake8 print() + tidelift (#1704) | Giampaolo Rodola | 2020-02-21 | 6 | -22/+9 |
| | |||||
* | fix KeyErrorrelease-5.7.0 | Giampaolo Rodola | 2020-02-18 | 1 | -1/+1 |
| | |||||
* | Add C linter script (#1698) | Giampaolo Rodola | 2020-02-18 | 11 | -14/+13 |
| | |||||
* | revert process_iter() exactly how it was pre #1667 | Giampaolo Rodola | 2020-02-18 | 1 | -3/+2 |
| | |||||
* | revert #1667 process_iter() new_only param | Giampaolo Rodola | 2020-02-18 | 2 | -21/+1 |
| | | | | | | | | | | On a second thought I realized that process_iter() uses a global variable, so it's not thread safe. That means that if the are 2 threads using it, the first thread one calling the function (+ consume the iterator), will "steal" the processes of the second thread. psutil.cpu_percent() has the same problem. That means we have a problem can't solve with the current API and requires a lot of thinking on how to solve it as it's not obvious. | ||||
* | #1053 fix syntax incompatible with py2.6 | Giampaolo Rodola | 2020-02-16 | 1 | -2/+1 |
| | |||||
* | remove deprecation test: it fails intermittently because warnings uses a ↵ | Giampaolo Rodola | 2020-02-16 | 1 | -17/+0 |
| | | | | global state | ||||
* | get rid of pip_install() code for py2; move everything in runner.py | Giampaolo Rodola | 2020-02-15 | 3 | -84/+17 |
| | |||||
* | point all shebangs to python 3 | Giampaolo Rodola | 2020-02-15 | 16 | -16/+16 |
| | |||||
* | refactor print colors utils | Giampaolo Rodola | 2020-02-15 | 3 | -93/+85 |
| | |||||
* | Merge branch 'master' of github.com:giampaolo/psutil | Giampaolo Rodola | 2020-02-15 | 2 | -11/+7 |
|\ | |||||
| * | Fix a compile error in _psutil_linux.c if PSUTIL_HAVE_IOPRIO is false (#1695) | Anselm Kruis | 2020-02-15 | 1 | -1/+1 |
| | | | | | | The macro PSUTIL_HAVE_IOPRIO is always defined. | ||||
| * | #1693: also increase precision of users()'s login time | Giampaolo Rodola | 2020-02-13 | 1 | -10/+6 |
| | | |||||
* | | update doc | Giampaolo Rodola | 2020-02-15 | 1 | -2/+3 |
|/ | |||||
* | divide test_system.py unit tests in multiple classes | Giampaolo Rodola | 2020-02-14 | 1 | -183/+200 |
| | |||||
* | fix tests | Giampaolo Rodola | 2020-02-13 | 2 | -2/+6 |
| |