diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/test_cmdline_tool.py | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/tests/test_cmdline_tool.py b/tests/test_cmdline_tool.py index 79b4b35..66ca21c 100755 --- a/tests/test_cmdline_tool.py +++ b/tests/test_cmdline_tool.py @@ -59,9 +59,11 @@ def run_test(cmd, testfile):      outputdir = os.path.join(os.getcwd(), cmdname)      actualfilename = os.path.join(outputdir, test + "-actual.txt") -    expectedfilename = os.path.join(testdir, cmdname, test + "-expected.txt") +    expecteddir = os.path.join(testdir, cmdname) +    expectedfilename = os.path.join(expecteddir, test + "-expected.txt")      if options.generate:  +        if not os.path.exists(expecteddir): os.makedirs(expecteddir)          outputname = expectedfilename      else:          if not os.path.exists(outputdir): os.makedirs(outputdir) | 
