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
Make generateSingleHeader.py Python 2.7 compatible
- Commit
b6d9976fbb3f67f5a6b3b48dec9de3f1c2b76a3a- Author
- Martin Hořeňovský ·
- Parents
6583284731e9
Changes
scripts/generateSingleHeader.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/generateSingleHeader.py b/scripts/generateSingleHeader.py index bef63b09..bb267ff5 100755 --- a/scripts/generateSingleHeader.py +++ b/scripts/generateSingleHeader.py @@ -36,8 +36,11 @@ 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) + +# ensure that the output directory exists (hopefully no races) +outDir = os.path.dirname(outputPath) +if not os.path.exists(outDir): + os.makedirs(outDir) out = open( outputPath, 'w' ) ifdefs = 0 implIfDefs = -1