Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Generate single header even if output dir does not exist

Commit
0020747420110545452a95ab37d04424118fcab8
Author
Martin Hořeňovský ·
Parents
169e260e8b73

Files · Download .tar.gz

Changes

 scripts/generateSingleHeader.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/generateSingleHeader.py b/scripts/generateSingleHeader.py
index 18a2612a..bef63b09 100755
--- a/scripts/generateSingleHeader.py
+++ b/scripts/generateSingleHeader.py
@@ -36,6 +36,8 @@ for arg in sys.argv[1:]:
         print( "\n** Unrecognised argument: " + arg + " **\n" )
         exit(1)
 
+# ensure that the output directory exists
+os.makedirs(os.path.dirname(outputPath), exist_ok = True)
 out = open( outputPath, 'w' )
 ifdefs = 0
 implIfDefs = -1