This is an automated email from the git hooks/post-receive script.
nsoffer pushed a commit to branch master in repository sanlock.
commit a6223003f7b3a3e071218fcafa0ae632587cfa1c Author: Amit Bawer abawer@redhat.com AuthorDate: Mon May 20 11:27:47 2019 +0300
tests: Add test for killpath(...)
Current status: - Py2: Accept command paths in bytes or ascii strings. - Py3: Accept command paths in unicode/ascii strings only. --- tests/python_test.py | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/tests/python_test.py b/tests/python_test.py index 2d50537..6eb027c 100644 --- a/tests/python_test.py +++ b/tests/python_test.py @@ -487,3 +487,8 @@ def test_write_resource_invalid_disk(tmpdir, sanlock_daemon, disk): sanlock.write_resource("ls_name", "res_name", disks) assert repr(disk) in str(e.value)
+@pytest.mark.parametrize("filename,encoding", FILE_NAMES) +def test_killpath(tmpdir, sanlock_daemon, filename, encoding): + cmd_path = util.generate_path(tmpdir, filename, encoding) + fd = sanlock.register() + sanlock.killpath(cmd_path, [cmd_path], fd)
sanlock-devel@lists.fedorahosted.org