summaryrefslogtreecommitdiff
path: root/tests/test_cmdline_tool.py
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-03-06 18:08:31 (GMT)
committerMarius Kintel <marius@kintel.net>2013-03-06 18:08:31 (GMT)
commitcfc67f928fc86310614940f126d9f6c76d4e9ea7 (patch)
tree162be7579d3acd0eeb5b7b509ef9a0b428d6831f /tests/test_cmdline_tool.py
parentfe44758f5096be0e98c82d2cb0d54bdeffc4403a (diff)
parent974abf13049d5e73227418e3990af8a9bbf9db09 (diff)
Merge branch 'master' of github.com:openscad/openscad
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