diff options
Diffstat (limited to 'tests/test_cmdline_tool.py')
-rwxr-xr-x | tests/test_cmdline_tool.py | 9 |
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 ) |