mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-25 23:06:10 +01:00
Fixed compile benchmark script
Now it no longer attempts to enter a directory before creating it...
This commit is contained in:
parent
cd6de9cd34
commit
fd6c7aee6d
@ -124,9 +124,9 @@ args = parser.parse_args()
|
|||||||
compiler_path = args.compiler
|
compiler_path = args.compiler
|
||||||
catch_path = args.catch_header
|
catch_path = args.catch_header
|
||||||
|
|
||||||
os.chdir(dir_name)
|
|
||||||
if args.generate_files:
|
if args.generate_files:
|
||||||
create_temp_dir()
|
create_temp_dir()
|
||||||
|
os.chdir(dir_name)
|
||||||
copy_catch(catch_path)
|
copy_catch(catch_path)
|
||||||
# now create the fake test files
|
# now create the fake test files
|
||||||
generate_files()
|
generate_files()
|
||||||
@ -134,6 +134,8 @@ if args.generate_files:
|
|||||||
print('Finished generating files')
|
print('Finished generating files')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
os.chdir(dir_name)
|
||||||
|
|
||||||
if args.flags:
|
if args.flags:
|
||||||
flags = args.flags
|
flags = args.flags
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user