Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
usr
/
local
/
lib64
/
python3.6
/
site-packages
/
psutil
/
tests
/
__pycache__
✏️
Editing: test_bsd.cpython-36.pyc
3 �̪e�R � @ s� d Z ddlZddlZddlZddlZddlZddlZddlmZ ddlmZ ddlm Z ddlm Z ddlmZ ddlm Z dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ er�ddlmZ e� Zej� dko�ed�ZndZdZdd� Zdd� Zeje d�G dd� de��Zeje d�G dd� de��Zeje d�G dd� de��Zeje d�G dd� de��Zeje d �G d!d"� d"e��Z e!d#k�r�dd$l"m#Z# e#e$� dS )%z$Tests specific to all BSD platforms.� N)�BSD)�FREEBSD)�NETBSD)�OPENBSD)�HAS_BATTERY)�TOLERANCE_SYS_MEM)�PsutilTestCase)�retry_on_failure)�sh)�spawn_testproc)� terminate)�which)�getpagesize�museFc C sh t d| �}tr(||jd�d d� }nts0trF||jd�d d� }yt|�S tk rb |S X dS )zmExpects a sysctl command with an argument and parse the result returning only the value of interest. zsysctl z: � N�=� )r r �findr r �int� ValueError)�cmdline�result� r �A/usr/local/lib64/python3.6/site-packages/psutil/tests/test_bsd.py�sysctl- s r c C s@ t d�}x&|jd�D ]}|j| �rP qW td��t|j� d �S )z+Thin wrapper around 'muse' cmdline utility.r � zline not foundr )r �split� startswithr r )�field�out�liner r r r <