diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-31 04:00:22 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-31 04:00:22 (GMT) |
commit | e8a9df55cfcf10e31d6513d6cb14cf630ee6c9b8 (patch) | |
tree | d8f0f25bc96677c55e531febb8c659165b9b4a6a /tests/test_cmdline_tool.py | |
parent | c56ec08ba99984d5c5c86ab183ee4d6195c805a5 (diff) |
test guicgalpngtest against cgalpngtest images. cleanup debugging stuff
Diffstat (limited to 'tests/test_cmdline_tool.py')
-rwxr-xr-x | tests/test_cmdline_tool.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_cmdline_tool.py b/tests/test_cmdline_tool.py index f29acc0..517c7e9 100755 --- a/tests/test_cmdline_tool.py +++ b/tests/test_cmdline_tool.py @@ -34,7 +34,11 @@ def initialize_environment(): 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 you have guicgalpngtest, use the images for cgalpngtest + if testbinary_filename.startswith("gui"): + testbinary_filename = testbinary_filename[3:] + expecteddir = os.path.join(options.regressiondir, testbinary_filename ) expectedfilename = os.path.join(expecteddir, testname + "-expected." + options.suffix) expectedfilename = os.path.normpath( expectedfilename ) |