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

Fixed compile benchmark script

Now it no longer attempts to enter a directory before creating it...
Commit
fd6c7aee6dff76de8c14fcd81b10128adaf57b14
Author
Martin Hořeňovský ·
Parents
cd6de9cd3435

Files · Download .tar.gz

Changes

 scripts/benchmarkCompile.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/benchmarkCompile.py b/scripts/benchmarkCompile.py
index 7e49485c..13e61898 100755
--- a/scripts/benchmarkCompile.py
+++ b/scripts/benchmarkCompile.py
@@ -124,9 +124,9 @@ args = parser.parse_args()
 compiler_path = args.compiler
 catch_path = args.catch_header
 
-os.chdir(dir_name)
 if args.generate_files:
     create_temp_dir()
+    os.chdir(dir_name)
     copy_catch(catch_path)
     # now create the fake test files
     generate_files()
@@ -134,6 +134,8 @@ if args.generate_files:
     print('Finished generating files')
     exit(1)
 
+os.chdir(dir_name)
+
 if args.flags:
     flags = args.flags