Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorMartin Hořeňovský2017-03-02 18:27:31 +0100
committerMartin Hořeňovský2017-03-02 18:27:31 +0100
commitfd6c7aee6dff76de8c14fcd81b10128adaf57b14 (patch)
tree6ecc81c8a622b8c99a7eab9dbcf50a41ef6ac14f /scripts
parentcd6de9cd34351b12b09480d2f6fc8cdd4248862b (diff)
downloadcatch3-fd6c7aee6dff76de8c14fcd81b10128adaf57b14.tar.gz
Fixed compile benchmark script
Now it no longer attempts to enter a directory before creating it...
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/benchmarkCompile.py4
1 files changed, 3 insertions, 1 deletions
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