JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3RbrJFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr3 JZ@sxdZddlZddlZddlmZddlmZddlmZddlmZeje dGdd d ej Z e d krtee dS) zSun OS specific tests.N)SUNOS)run_test_module_by_name)sh)unittestz SUNOS onlyc@seZdZddZddZdS)SunOSSpecificTestCasec Cstdtjd}|jjddd}|s4tdd}}xL|D]D}|j}|d d\}}|tt|d7}|tt|d7}qBW||}tj} |j | j ||j | j ||j | j |dS) Nz#env PATH=/usr/sbin:/sbin:%s swap -lPATH zno swap device(s) configuredri) rosenvironstripsplit ValueErrorintpsutilZ swap_memory assertEqualtotalusedfree) selfoutlinesrrlinetfrZ psutil_swapr"/usr/lib64/python3.6/test_sunos.pytest_swap_memorys z&SunOSSpecificTestCase.test_swap_memorycCs&td}|jtjt|jddS)Nz/usr/sbin/psrinfor)rrr cpu_countlenr)rrrrrtest_cpu_count&sz$SunOSSpecificTestCase.test_cpu_countN)__name__ __module__ __qualname__rr"rrrrrsr__main__) __doc__r rrZ psutil.testsrrrZskipIfZTestCaserr#__file__rrrrs