Fixed compile benchmark script

Now it no longer attempts to enter a directory before creating it...
This commit is contained in:
Martin Hořeňovský 2017-03-02 18:27:31 +01:00
parent cd6de9cd34
commit fd6c7aee6d

View File

@ -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