diff options
author | SeongJae Park <sj38.park@gmail.com> | 2024-03-17 11:44:08 -0700 |
---|---|---|
committer | SeongJae Park <sj38.park@gmail.com> | 2024-03-17 11:44:08 -0700 |
commit | 17e3563dd6ba3bfa1a128b448ba442b3560d8abe (patch) | |
tree | 857e1ce5e1517de1a4ce9d90d7e95ec32e246d7f | |
parent | 73b2e773f0ff2371adaa4aae6ced49b3165b2200 (diff) | |
download | damo-17e3563dd6ba3bfa1a128b448ba442b3560d8abe.tar.gz |
tests/unit/test_damon_dbgfs: Remove 'test_files_content_to_kdamonds()'
The function is testing wops_for_kdamonds(), which is not really used
anymore. Test for replacement of wops_for_kdamonds(), anmely
write_kdamonds(), has also added. Remove the unnecessary test.
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
-rw-r--r-- | tests/unit/test_damon_dbgfs.py | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/tests/unit/test_damon_dbgfs.py b/tests/unit/test_damon_dbgfs.py index 8030390c..c638b8a1 100644 --- a/tests/unit/test_damon_dbgfs.py +++ b/tests/unit/test_damon_dbgfs.py @@ -44,58 +44,6 @@ class TestDamonDbgfs(unittest.TestCase): watermarks=_damon.DamosWatermarks('none',0,0,0,0), filters=[], stats=None)}) - def test_files_content_to_kdamonds(self): - set_damon_dbgfs_features() - - _test_damo_common.test_input_expects(self, - lambda x: _damon_dbgfs.wops_for_kdamonds( - _damon_dbgfs.files_content_to_kdamonds(json.loads(x))), - { - json.dumps( - { - "attrs": "5000 100000 1000000 10 1000\n", - "init_regions": "0 1 100\n0 100 200\n", - "kdamond_pid": "none\n", - "mk_contexts": - "read failed (reading /sys/kernel/debug/damon/mk_contexts failed ([Errno 22] Invalid argument))", - "monitor_on": "off\n", - "rm_contexts": - "read failed (reading /sys/kernel/debug/damon/rm_contexts failed ([Errno 22] Invalid argument))", - "schemes": - "4096 18446744073709551615 0 0 10 42949 5 0 584792941 1000 0 0 0 0 0 0 0 0 0 0 0 0 0\n", - "target_ids": "4242\n" - }): - [{"/sys/kernel/debug/damon/attrs": - "5000 100000 1000000 10 1000 "}, - {"/sys/kernel/debug/damon/target_ids": "4242"}, - {"/sys/kernel/debug/damon/init_regions": - "0 1 100 0 100 200"}, - {"/sys/kernel/debug/damon/schemes": - "4096\t18446744073709551615\t0\t0\t10\t42949\t5\t0\t584792941\t1000\t0\t0\t0\t0\t0\t0\t0\t0"}], - json.dumps( - { - "attrs": "5000 100000 1000000 10 1000\n", - "init_regions": "", - "kdamond_pid": "none\n", - "mk_contexts": - "read failed (reading /sys/kernel/debug/damon/mk_contexts failed ([Errno 22] Invalid argument))", - "monitor_on": "off\n", - "rm_contexts": - "read failed (reading /sys/kernel/debug/damon/rm_contexts failed ([Errno 22] Invalid argument))", - "schemes": - "4096 18446744073709551615 0 0 10 42949 5 0 5368709120 1000 0 3 7 1 1000000 999 998 995 0 0 0 0 0\n", - "target_ids": "42\n" - }): - [{"/sys/kernel/debug/damon/attrs": - "5000 100000 1000000 10 1000 "}, - {"/sys/kernel/debug/damon/target_ids": - "paddr\n"}, - {"/sys/kernel/debug/damon/init_regions": - ""}, - {"/sys/kernel/debug/damon/schemes": - "4096\t18446744073709551615\t0\t0\t10\t42949\t5\t0\t5368709120\t1000\t0\t3\t7\t1\t1000000\t999\t998\t995"}] - }) - def test_files_content_to_kdamonds_io(self): set_damon_dbgfs_features() |