summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2014-10-26 07:27:23 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2014-10-26 18:37:13 +0100
commit70616187b32ee890eae8e8607c2d247d16cd6787 (patch)
treeeedb5c3ab8328308ae72cec1db10e7e0067a1d29
parent205e3ff88898848b6e5dcfde74bff829bd27bf83 (diff)
downloadlvm2-70616187b32ee890eae8e8607c2d247d16cd6787.tar.gz
tests: pytest update
-rw-r--r--test/api/pytest.sh3
-rwxr-xr-xtest/api/python_lvm_unit.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/test/api/pytest.sh b/test/api/pytest.sh
index 7b6085fb6..36f55fa3c 100644
--- a/test/api/pytest.sh
+++ b/test/api/pytest.sh
@@ -21,6 +21,9 @@
# thus it needs dmeventd
#
+# Example of using 'gdb' with python:
+# gdb -ex r --args python FULL_PATH/lvm2/test/api/python_lvm_unit.py -v TestLvm.test_lv_active_inactive
+
#Locate the python binding library to use.
python_lib=$(find $abs_top_builddir -name lvm.so)
# Unable to test python bindings if library not available
diff --git a/test/api/python_lvm_unit.py b/test/api/python_lvm_unit.py
index ab2e86f27..c33877512 100755
--- a/test/api/python_lvm_unit.py
+++ b/test/api/python_lvm_unit.py
@@ -132,7 +132,7 @@ class TestLvm(unittest.TestCase):
vg.extend(d)
vg.createLvThinpool(pool_name, vg.getSize()/2, 0, 0,
- lvm.THIN_DISCARDS_PASSDOWN, 1)
+ lvm.THIN_DISCARDS_PASSDOWN, 1)
return vg
@staticmethod