summaryrefslogtreecommitdiff
path: root/tests/test_cmdline_tool.py
diff options
context:
space:
mode:
authordonbright <hugh.m.bright@gmail.com>2013-03-05 23:47:14 (GMT)
committerdonbright <hugh.m.bright@gmail.com>2013-03-05 23:47:14 (GMT)
commit42f21c3a0850083d245aa3ac346a53e876f0679e (patch)
treefacf41750e0fe27cc4cdaf352c9c8e687011d103 /tests/test_cmdline_tool.py
parent422c668dcb538f181683ae51305bf8d3404f48d6 (diff)
parent4734172c3a16cc06b09e4d2131aa8e380bd0f226 (diff)
Merge pull request #288 from openscad/issue11_2
Issue11 2
Diffstat (limited to 'tests/test_cmdline_tool.py')
-rwxr-xr-xtests/test_cmdline_tool.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_cmdline_tool.py b/tests/test_cmdline_tool.py
index 889c429..5314921 100755
--- a/tests/test_cmdline_tool.py
+++ b/tests/test_cmdline_tool.py
@@ -28,13 +28,20 @@ import shutil
import platform
import string
+share_expected_imgs = {}
+share_expected_imgs["guicgalpngtest"] = "cgalpngtest"
+share_expected_imgs["guiopencsgtest"] = "opencsgtest"
+
def initialize_environment():
if not options.generate: options.generate = bool(os.getenv("TEST_GENERATE"))
return True
def init_expected_filename(testname, cmd):
global expecteddir, expectedfilename
- expecteddir = os.path.join(options.regressiondir, os.path.split(cmd)[1])
+ testbinary_filename = os.path.split(cmd)[1]
+ if testbinary_filename in share_expected_imgs:
+ testbinary_filename = share_expected_imgs[testbinary_filename]
+ expecteddir = os.path.join(options.regressiondir, testbinary_filename )
expectedfilename = os.path.join(expecteddir, testname + "-expected." + options.suffix)
expectedfilename = os.path.normpath( expectedfilename )
contact: Jan Huwald // Impressum