Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous test fixes #2097

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Miscellaneous test fixes #2097

wants to merge 6 commits into from

Commits on Apr 13, 2022

  1. test_linux.py: trim possible -dirty suffix from 'free -V' output

    This can happen if free was built from git.
    
    Signed-off-by: Alexander Kanavin <alex@linutronix.de>
    Alexander Kanavin committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    8ace2c9 View commit details
    Browse the repository at this point in the history
  2. test_misc.py: correctly skip test if setup.py does not exist

    This can happen if installed tests are run in a non-CI environment:
    $ python3 -m psutil.tests
    
    Signed-off-by: Alexander Kanavin <alex@linutronix.de>
    Alexander Kanavin committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    369f368 View commit details
    Browse the repository at this point in the history
  3. test_posix.py: use mountpoint as df argument, and not device

    This is more reliable as in virtual machines such as qemu there may
    not be an accurate mapping to devices.
    
    Signed-off-by: Alexander Kanavin <alex@linutronix.de>
    Alexander Kanavin committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    03dd0af View commit details
    Browse the repository at this point in the history
  4. test_contracts.py: drop test for presence of io_counters

    This may be absent on Linux as well (if the kernel is configured that way),
    so the test becomes meaningless.
    
    Signed-off-by: Alexander Kanavin <alex@linutronix.de>
    Alexander Kanavin committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    7dc1238 View commit details
    Browse the repository at this point in the history
  5. test_process.py: drop initial check for ionice class being IOPriority…

    ….IOPRIO_CLASS_NONE
    
    On two of my machines running different distros it's IOPriority.IOPRIO_CLASS_BE.
    
    Signed-off-by: Alexander Kanavin <alex@linutronix.de>
    Alexander Kanavin committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    a245d6d View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2022

  1. test_process: handle /usr/bin/tty returning /dev/ptmx

    This can happen in some openpty() scenarios on Linux
    
    Signed-off-by: Alexander Kanavin <alex@linutronix.de>
    Alexander Kanavin committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    a589416 View commit details
    Browse the repository at this point in the history