summaryrefslogtreecommitdiff
path: root/psutil/tests/test_linux.py
Commit message (Collapse)AuthorAgeFilesLines
* Test sub-processes cleanup and ProcessTestCase class (#1739)Giampaolo Rodola2020-04-281-5/+3
|
* psutil.Popen: inherit from subprocess + support wait(timeout=...) parameter ↵Giampaolo Rodola2020-04-281-3/+3
| | | | (#1736)
* Merge branch 'master' into devreap-childrenGiampaolo Rodola2020-04-261-2/+3
|\
| * Parallel tests (UNIX) (#1709)Giampaolo Rodola2020-04-261-2/+3
| |
* | rename varGiampaolo Rodola2020-04-261-12/+12
|/
* Get rid of TESTFN global variable (#1734)Giampaolo Rodola2020-04-241-39/+36
|
* point all shebangs to python 3Giampaolo Rodola2020-02-151-1/+1
|
* #1681, revert 00a3398Giampaolo Rodola2020-02-131-19/+0
|
* try to fix travis testGiampaolo Rodola2020-02-111-0/+3
|
* fix #1681 / linux / disk_partitions: show swapGiampaolo Rodola2020-02-111-0/+16
|
* [Linux] disk_io_counters() ValueError when parsing /sys/block (#1684)Giampaolo Rodola2020-02-091-21/+2
| | | | | | | | | | | | | | | | | | | Fixes: ``` ====================================================================== ERROR: psutil.tests.test_linux.TestSystemDiskIoCounters.test_emulate_use_sysfs ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_linux.py", line 1195, in test_emulate_use_sysfs wsysfs = psutil.disk_io_counters(perdisk=True) File "/home/giampaolo/svn/psutil/psutil/__init__.py", line 2065, in disk_io_counters rawdict = _psplatform.disk_io_counters(**kwargs) File "/home/giampaolo/svn/psutil/psutil/_pslinux.py", line 1124, in disk_io_counters for entry in gen: File "/home/giampaolo/svn/psutil/psutil/_pslinux.py", line 1110, in read_sysfs wbytes, wtime, _, busy_time, _) = map(int, fields) ValueError: too many values to unpack (expected 11) ```
* Properly handle PID type in C (#1672)Giampaolo Rodola2020-01-291-0/+1
|
* credits for #1648Giampaolo Rodola2019-12-281-0/+1
|
* updat HISTORYGiampaolo Rodola2019-11-221-0/+2
|
* linux, cmdline(), fix for #1179, comment 552984549: sometimes string ends ↵Giampaolo Rodola2019-11-221-0/+8
| | | | with null byte but args are separated by spaces
* fix more CentOS failuresGiampaolo Rodola2019-10-101-19/+0
|
* fix some failing tests on CentOSGiampaolo Rodola2019-10-091-4/+3
|
* fix #1527: Linux process CPU iowait timeGiampaolo Rodola2019-09-071-0/+4
|
* PEP-3151: backport FS exceptions to Python 2 (#1544)Giampaolo Rodola2019-06-281-4/+3
|
* update CREDITS + small style fixGiampaolo Rodola2019-05-081-5/+0
|
* Fix cpu freq (#1496)David Brochart2019-04-261-6/+23
|
* Update cpu_freq to return 0 for max/min if not available (#1487)Alex Manuskin2019-04-251-4/+4
|
* Implement getloadavg on Windows. Fixes #604 and #1484 (#1485) (patch by ↵Ammar Askar2019-04-111-0/+15
| | | | Ammar Askar)
* Linux / CPU freq, fixes #1481Alex Manuskin2019-04-051-34/+47
|
* issue #1404 / linux / phys CPUs countGiampaolo Rodola2019-03-141-4/+6
| | | | | determine CPUs from /sys/devices/system/cpu/cpu[0-9]/topology/core_id in case /proc/cpuinfo does not provide this info
* Big docfix (#1464)Giampaolo Rodola2019-03-141-80/+97
| | | | | | | * use https wherever possible * always point to python 3 doc * point to new MSDN urls * use RST references and avoid repetitions of URLs
* Make tests invariant to LANG setting (#1462)Benjamin Drung2019-03-131-3/+3
| | | | | | | When LANG is set to a non English locale (e.g. de_DE.UTF-8), free and vmstat will output the text translated and cause the test cases to fail. Therefore set LANG=C.UTF-8 when calling free or vmstat to always get the English output.
* test runner refactoring (avoid code duplication)Giampaolo Rodola2019-03-131-2/+2
|
* Coloured tests (#1459)Giampaolo Rodola2019-03-131-1/+1
| | | Fixes #1458.
* #1359: add test case for cpu_count(logical=False) against lscpu utilityGiampaolo Rodola2018-11-081-0/+10
|
* fix #1307: [Linux] disk_partitions() does not honour PROCFS_PATHGiampaolo Rodola2018-10-191-0/+12
|
* #1197 / linux / cpu_freq(): parse /proc/cpuinfo in case ↵Giampaolo Rodola2018-10-161-0/+29
| | | | /sys/devices/system/cpu fs is not available
* fix travisGiampaolo Rodola2018-10-121-3/+1
|
* give credits to @alxchk for #1346 (sunOS)Giampaolo Rodola2018-10-111-2/+1
|
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2018-10-011-1/+39
|\
| * Add parsing for /sys/class/thermal (#1345)Alex Manuskin2018-10-011-1/+39
| | | | | | Add parsing for /sys/class/thermal
* | use memory tolerance in occasionally failing testGiampaolo Rodola2018-09-281-1/+1
|/
* #1341: move open() utilities/wrappers in _common.pyGiampaolo Rodola2018-09-261-11/+11
|
* Refactored ps() function in test_posix (#1341)E. M. Bray2018-09-261-8/+0
| | | | | | * refactored ps() function that attepts to abstract away more platform-specific differences in the ps command * move open_text an open_binary tests to test_misc
* #1321 add unit testsGiampaolo Rodola2018-08-131-0/+20
|
* #1321: refactoringGiampaolo Rodola2018-08-131-1/+1
|
* remove old testGiampaolo Rodola2018-08-011-19/+0
|
* disk_io_counters() - linux: mimic iostat behavior (#1313)Giampaolo Rodola2018-07-291-27/+62
| | | Fix #1244, #1305, #1312. disk_io_counters(perdisk=False) on Linux was counting disk device + partitions(s) twice
* remove outdated linux testGiampaolo Rodola2018-05-041-14/+0
|
* remove duplicate testGiampaolo Rodola2018-03-241-67/+0
|
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2018-03-201-371/+345
|\
| * refactor open mock + add purge script (#1249)Giampaolo Rodola2018-03-171-411/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update doc / HISTORY / CREDITS * suppress warnings from mock module * linux: add mock test for virtual_memory() * add a script to purge installation * linux: disable unreliable test * refactor open mock * refactor open mock * refactor open mock * refactor open mock * refactor open mock * refactor open mock * refactor open mock * refactor open mock * refactor open mock * refactor open mock * fix typo * fix typo * refactor open mock * refactor open mock * refactor open mock * refactor open mock * refactor open mock * add docstrings
* | linux: disable unreliable testGiampaolo Rodola2018-03-171-14/+15
| |
* | linux: add mock test for virtual_memory()Giampaolo Rodola2018-03-171-25/+73
|/
* Adding 'slab' info to virtual_memory on linux (#1239)maxime mouial2018-03-171-0/+26
| | | There are 1970 results on stackoverflow for "slab". Also it is being requested by another user https://github.com/giampaolo/psutil/issues/1202. As such I'm going to accept this PR.