]> granicus.if.org Git - graphviz/commitdiff
Add workaround for gvpr not supporting abs path on Windows
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Tue, 28 Jul 2020 12:20:22 +0000 (14:20 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Thu, 30 Jul 2020 14:11:12 +0000 (16:11 +0200)
https://gitlab.com/graphviz/graphviz/-/issues/1780

rtest/test_regression.py

index 1605fb0f3dab938b56e87c673b2d88156c3da19d..dd9876baf8bf8c8b550033d6376f9b21cc500ebc 100644 (file)
@@ -156,10 +156,14 @@ def test_1594():
     '''
 
     # locate our associated test case in this directory
-    input = os.path.join(os.path.dirname(__file__), '1594.gvpr')
+# FIXME: remove cwd workaround when
+# https://gitlab.com/graphviz/graphviz/-/issues/1780 is fixed
+#    input = os.path.join(os.path.dirname(__file__), '1594.gvpr')
+    input = '1594.gvpr'
 
     # run GVPR with our (malformed) input program
     p = subprocess.Popen(['gvpr', '-f', input], stdin=subprocess.PIPE,
+      cwd=os.path.join(os.path.dirname(__file__)),
       stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
     _, stderr = p.communicate()