-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8aeea0c
commit afd4ef5
Showing
3 changed files
with
48 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from jarvis_util.util.argparse import ArgParse | ||
from jarvis_util.shell.exec import Exec | ||
from jarvis_util.shell.local_exec import LocalExecInfo | ||
from jarvis_util.util.hostfile import Hostfile | ||
from jarvis_util.introspect.system_info import Lsblk, \ | ||
ListFses, FiInfo, Blkid, ResourceGraph, StorageDeviceType | ||
from jarvis_util.util.size_conv import SizeConv | ||
import pathlib | ||
import itertools | ||
import os | ||
from unittest import TestCase | ||
from jarvis_util.introspect.monitor import Monitor, MonitorParser | ||
|
||
class TestSystemInfo(TestCase): | ||
|
||
def test_monitor_parser(self): | ||
parser = MonitorParser(os.path.join(os.environ['HOME'], 'monitor')) | ||
parser.parse() | ||
avg = parser.avg_memory() | ||
print(avg) |