Saggi Mizrahi has uploaded a new change for review.

Change subject: cpopen: Fix tests
......................................................................

cpopen: Fix tests

Now they run on make check

Change-Id: I3ac32fbf8ecdec447347d0c674d7a4950b9c8b8e
Signed-off-by: Saggi Mizrahi <[email protected]>
---
M lib/cpopen/Makefile.am
M lib/cpopen/tests.py
2 files changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/64/15164/1

diff --git a/lib/cpopen/Makefile.am b/lib/cpopen/Makefile.am
index 858d41c..a204daf 100644
--- a/lib/cpopen/Makefile.am
+++ b/lib/cpopen/Makefile.am
@@ -36,6 +36,8 @@
        $(MKDIR_P) $(DESTDIR)$(cpopendir)
        $(INSTALL_PROGRAM) cpopen.so \
                $(DESTDIR)$(cpopendir)/cpopen.so
+check-local: tests.py
+       nosetests tests.py
 
 EXTRA_DIST = \
        cpopen.c \
diff --git a/lib/cpopen/tests.py b/lib/cpopen/tests.py
index cabf7c4..9dd1906 100644
--- a/lib/cpopen/tests.py
+++ b/lib/cpopen/tests.py
@@ -35,7 +35,7 @@
     for p in glob.glob("build/*/"):
         sys.path.append(p)
 
-    from cpopen import CPopen
+    from . import CPopen
 
 
 class TestCPopen(TestCase):


--
To view, visit http://gerrit.ovirt.org/15164
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3ac32fbf8ecdec447347d0c674d7a4950b9c8b8e
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Saggi Mizrahi <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to