Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use centralized color print functionrevert-popen | Giampaolo Rodola | 2020-04-30 | 1 | -19/+21 |
| | |||||
* | runner: don't use stream | Giampaolo Rodola | 2020-04-30 | 1 | -1/+1 |
| | |||||
* | always use Process.wait() wrapper | Giampaolo Rodola | 2020-04-30 | 2 | -16/+7 |
| | |||||
* | revert #1736 (make psutil.Popen inherit from subprocess) | Giampaolo Rodola | 2020-04-30 | 3 | -78/+42 |
| | |||||
* | Per-test file cleanup and new PsutilTestCase (#1743) | Giampaolo Rodola | 2020-04-30 | 18 | -269/+262 |
| | | | | | 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). | ||||
* | Merge branch 'test-runner-refact' | Giampaolo Rodola | 2020-04-30 | 3 | -151/+159 |
|\ | |||||
| * | See: #1709: allow per-test parallelization | Giampaolo Rodola | 2020-04-30 | 8 | -170/+187 |
| | | | | | | | | | | | | | | | | 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 | ||||
* | | Parallel build (#1741) | Giampaolo Rodola | 2020-04-30 | 6 | -19/+28 |
|/ | |||||
* | 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 | 3 | -20/+24 |
| | |||||
* | 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 | 8 | -60/+99 |
| | | | | (#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 | 25 | -134/+315 |
|\ | |||||
| * | Parallel tests (UNIX) (#1709) | Giampaolo Rodola | 2020-04-26 | 25 | -134/+315 |
| | | |||||
* | | 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 |
| | |||||
* | Merge branch 'master' of github.com:giampaolo/psutil | Giampaolo Rodola | 2020-04-24 | 10 | -355/+300 |
|\ | |||||
| * | Get rid of TESTFN global variable (#1734) | Giampaolo Rodola | 2020-04-24 | 10 | -355/+300 |
| | | |||||
* | | Merge branch 'master' of github.com:giampaolo/psutil | Giampaolo Rodola | 2020-04-24 | 6 | -30/+111 |
|\ \ | |/ | |||||
| * | Backport python 3 super() (#1733) | Giampaolo Rodola | 2020-04-24 | 7 | -34/+112 |
| | | |||||
* | | skip scripts test if can't locate directory | Giampaolo Rodola | 2020-04-24 | 1 | -4/+1 |
|/ | | | | | May happen on CI and when running tests via "python -m psutil.tests" since scripts dir is not installed. | ||||
* | Merge branch 'master' of github.com:giampaolo/psutil | Giampaolo Rodola | 2020-04-23 | 12 | -443/+572 |
|\ | |||||
| * | MemoryLeakTest class enhancements (#1731) | Giampaolo Rodola | 2020-04-23 | 13 | -442/+586 |
| | | |||||
| * | Remove useless assignment (#1728) | kaiix | 2020-04-16 | 1 | -1/+0 |
| | | |||||
* | | Merge branch 'master' of github.com:giampaolo/psutil | Giampaolo Rodola | 2020-04-15 | 4 | -4/+4 |
|\ \ | |/ | |||||
| * | 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 | ||||
| * | Fixup release date (#1716) | Andrey Babak | 2020-03-14 | 1 | -1/+1 |
| | | |||||
| * | sensors_fans is not available on MacOS (#1710) | crusaderky | 2020-03-04 | 2 | -2/+2 |
| | | |||||
* | | update HISTORY/CREDITS | Giampaolo Rodola | 2020-04-14 | 2 | -0/+14 |
|/ | |||||
* | 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 | 16 | -173/+230 |
| | |||||
* | fix KeyErrorrelease-5.7.0 | Giampaolo Rodola | 2020-02-18 | 1 | -1/+1 |
| | |||||
* | Add C linter script (#1698) | Giampaolo Rodola | 2020-02-18 | 22 | -29/+128 |
| | |||||
* | revert process_iter() exactly how it was pre #1667 | Giampaolo Rodola | 2020-02-18 | 2 | -5/+5 |
| | |||||
* | revert #1667 process_iter() new_only param | Giampaolo Rodola | 2020-02-18 | 4 | -34/+2 |
| | | | | | | | | | | 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. | ||||
* | fix Makefile for freebsd | Giampaolo Rodola | 2020-02-18 | 1 | -9/+7 |
| | |||||
* | Merge branch 'master' of github.com:giampaolo/psutil | Giampaolo Rodola | 2020-02-17 | 1 | -9/+0 |
|\ | |||||
| * | Remove use of deprecated setuptools test_suite & tests_require (#1696) | Jon Dufresne | 2020-02-17 | 1 | -9/+0 |
| | | | | | | | | | | Since setuptools v41.5.0 (27 Oct 2019), the 'test' command is formally deprecated and should not be used. Test are still easy to run through tox -- as before. | ||||
* | | #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 | 8 | -91/+24 |
| | |||||
* | point all shebangs to python 3 | Giampaolo Rodola | 2020-02-15 | 51 | -52/+52 |
| | |||||
* | refactor print colors utils | Giampaolo Rodola | 2020-02-15 | 10 | -208/+133 |
| | |||||
* | update doc | Giampaolo Rodola | 2020-02-15 | 1 | -0/+3 |
| | |||||
* | update history for #1695 | Giampaolo Rodola | 2020-02-15 | 2 | -0/+6 |
| | |||||
* | Merge branch 'master' of github.com:giampaolo/psutil | Giampaolo Rodola | 2020-02-15 | 3 | -13/+9 |
|\ | |||||
| * | 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 | 2 | -12/+8 |
| | |