From 819c90930f2063e57f46ac267bd071a89031f834 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 28 Jul 2020 14:20:22 +0200 Subject: [PATCH] Add workaround for gvpr not supporting abs path on Windows https://gitlab.com/graphviz/graphviz/-/issues/1780 --- rtest/test_regression.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rtest/test_regression.py b/rtest/test_regression.py index 1605fb0f3..dd9876baf 100644 --- a/rtest/test_regression.py +++ b/rtest/test_regression.py @@ -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() -- 2.40.0