summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Enhance Process repr and add exit codewait-exit-codeGiampaolo Rodola2020-05-024-13/+27
| | | | | Show exit code if wait() was used and also use cached name if name() fails.
* remove Popen.wait() method (duplicate)Giampaolo Rodola2020-05-022-12/+1
|
* refactorGiampaolo Rodola2020-05-021-16/+2
|
* remove duplicate testGiampaolo Rodola2020-05-021-9/+0
|
* refactor testsGiampaolo Rodola2020-05-023-55/+79
|
* cache wait() ret valGiampaolo Rodola2020-05-024-7/+13
|
* move testsGiampaolo Rodola2020-05-022-66/+39
|
* localize variable access for speedupGiampaolo Rodola2020-05-023-22/+35
|
* handle SIGSTOP and SIGCONTGiampaolo Rodola2020-05-023-23/+59
|
* refactor wait_pid() and write unit testsGiampaolo Rodola2020-05-022-28/+69
|
* cleanup psutil mod namespace a bitGiampaolo Rodola2020-05-011-21/+18
|
* refactor signal testsGiampaolo Rodola2020-05-011-50/+38
|
* fix AttributeErrorGiampaolo Rodola2020-05-011-2/+8
|
* Refactor process test utils methods (#1745)Giampaolo Rodola2020-05-0111-178/+151
| | | ...in order to accomodate Cygwin implementation.
* Drastically improve "make test/build" speed.Giampaolo Rodola2020-05-014-39/+39
| | | | | | | Doing "make install" before any test is slow and not really necessary. Instead do "make build", and remove the part import setuptools and test psutil can be imported (do that in make install instead). This way I went down from 0.8 secs (install phase before starting the test) to 0.3 secs!
* Revert #1736: Popen inheriting from subprocess (#1744)Giampaolo Rodola2020-05-015-112/+69
|
* Per-test file cleanup and new PsutilTestCase (#1743)Giampaolo Rodola2020-04-3018-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 Rodola2020-04-303-151/+159
|\
| * See: #1709: allow per-test parallelizationGiampaolo Rodola2020-04-308-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 Rodola2020-04-306-19/+28
|/
* refactoring / rename varsGiampaolo Rodola2020-04-291-12/+10
|
* Test sub-processes cleanup and ProcessTestCase class (#1739)Giampaolo Rodola2020-04-2812-215/+260
|
* show status() in __repr__Giampaolo Rodola2020-04-283-20/+24
|
* create_zombie_proc() make it return parent so that we can kill zombieGiampaolo Rodola2020-04-284-19/+27
|
* psutil.Popen: inherit from subprocess + support wait(timeout=...) parameter ↵Giampaolo Rodola2020-04-288-60/+99
| | | | (#1736)
* add new termina() test utilGiampaolo Rodola2020-04-271-56/+73
|
* Merge branch 'master' into devreap-childrenGiampaolo Rodola2020-04-2625-134/+315
|\
| * Parallel tests (UNIX) (#1709)Giampaolo Rodola2020-04-2625-134/+315
| |
* | rename varGiampaolo Rodola2020-04-265-45/+45
|/
* trick to execute atexit functions in case of SIGTERMGiampaolo Rodola2020-04-251-21/+34
|
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2020-04-2410-355/+300
|\
| * Get rid of TESTFN global variable (#1734)Giampaolo Rodola2020-04-2410-355/+300
| |
* | Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2020-04-246-30/+111
|\ \ | |/
| * Backport python 3 super() (#1733)Giampaolo Rodola2020-04-247-34/+112
| |
* | skip scripts test if can't locate directoryGiampaolo Rodola2020-04-241-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/psutilGiampaolo Rodola2020-04-2312-443/+572
|\
| * MemoryLeakTest class enhancements (#1731)Giampaolo Rodola2020-04-2313-442/+586
| |
| * Remove useless assignment (#1728)kaiix2020-04-161-1/+0
| |
* | Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2020-04-154-4/+4
|\ \ | |/
| * Fix handling /proc/cpuinfo without tabs (#1726)Michał Górny2020-04-141-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 Babak2020-03-141-1/+1
| |
| * sensors_fans is not available on MacOS (#1710)crusaderky2020-03-042-2/+2
| |
* | update HISTORY/CREDITSGiampaolo Rodola2020-04-142-0/+14
|/
* Fix detecting empty result in TestSystemAPIs.test_users() (#1699)Michał Górny2020-02-211-2/+2
|
* Git hook for renamed/added/deleted files + flake8 print() + tidelift (#1704)Giampaolo Rodola2020-02-2116-173/+230
|
* fix KeyErrorrelease-5.7.0Giampaolo Rodola2020-02-181-1/+1
|
* Add C linter script (#1698)Giampaolo Rodola2020-02-1822-29/+128
|
* revert process_iter() exactly how it was pre #1667Giampaolo Rodola2020-02-182-5/+5
|
* revert #1667 process_iter() new_only paramGiampaolo Rodola2020-02-184-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 freebsdGiampaolo Rodola2020-02-181-9/+7
|