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(a)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)
+(a)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)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by thread