Sandro Bonazzola has uploaded a new change for review.

Change subject: packaging: fixing distcheck issues
......................................................................

packaging: fixing distcheck issues

Change-Id: I547b791c5d009f415066cd7a3b7a85e1db6388a9
Signed-off-by: Sandro Bonazzola <[email protected]>
---
M src/ovf/Makefile.am
M src/ovf/ovfenvelopetest.py
2 files changed, 10 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-image-uploader 
refs/changes/68/29068/1

diff --git a/src/ovf/Makefile.am b/src/ovf/Makefile.am
index ec97ba7..d4c858b 100644
--- a/src/ovf/Makefile.am
+++ b/src/ovf/Makefile.am
@@ -43,15 +43,15 @@
 all-local:
 if PYTHON_SYNTAX_CHECK
        if [ -n "$(PYFLAKES)" ]; then \
-               $(PYFLAKES) ovfenvelopetest.py; \
+               $(PYFLAKES) $(srcdir)/ovfenvelopetest.py; \
        fi
        if [ -n "$(PEP8)" ]; then \
-               $(PEP8) ovfenvelopetest.py; \
+               $(PEP8) $(srcdir)/ovfenvelopetest.py; \
        fi
 endif
 
 check-local:
-       $(PYTHON) ovfenvelopetest.py
+       $(PYTHON) $(srcdir)/ovfenvelopetest.py
 
 clean-local: \
        python-clean \
diff --git a/src/ovf/ovfenvelopetest.py b/src/ovf/ovfenvelopetest.py
index a4a7df1..b0a5bb2 100644
--- a/src/ovf/ovfenvelopetest.py
+++ b/src/ovf/ovfenvelopetest.py
@@ -1,6 +1,7 @@
 '''
 Created on May 17, 2011
 '''
+import os
 import unittest
 import ovfenvelope
 import pprint
@@ -10,7 +11,12 @@
 class Test(unittest.TestCase):
 
     def setUp(self):
-        self.xmlDoc = ovfenvelope.parse("sample-ovf.xml")
+        self.xmlDoc = ovfenvelope.parse(
+            os.path.join(
+                os.path.dirname(__file__),
+                "sample-ovf.xml"
+            )
+        )
         self.section_ary = self.xmlDoc.get_Section()
         self.content_ary = self.xmlDoc.get_Content()
         self.ref_ary = self.xmlDoc.get_References()


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I547b791c5d009f415066cd7a3b7a85e1db6388a9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-image-uploader
Gerrit-Branch: master
Gerrit-Owner: Sandro Bonazzola <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to