Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Resolve issue with looking for benchmark tests in the wrong path.
Browse files Browse the repository at this point in the history
In pyccel#5, benchmarks were moved to the tests/ directory from the benchmark_code/ directory. This change updates that path.

This error is received on attempting to run the benchmarks:

```sh
$ python benchmarks/run_benchmarks.py --verbose
===========================================
    Ackermann
===========================================
Traceback (most recent call last):
  File "/home/aholmes/repos/pyccel-benchmarks/benchmarks/run_benchmarks.py", line 209, in <module>
    shutil.copyfile(test_file, os.path.join(new_folder, basename))
  File "/usr/lib/python3.10/shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/home/aholmes/repos/pyccel-benchmarks/benchmarks/benchmark_code/ackermann_mod.py'
```

Related: http://openjournals/joss-reviews#4991
  • Loading branch information
aholmes committed Dec 6, 2022
1 parent 724b72b commit 8c9c477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/run_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@

start_dir = os.getcwd()

code_folder = os.path.join(os.path.dirname(__file__), 'benchmark_code')
code_folder = os.path.join(os.path.dirname(__file__), 'tests')

for t in tests:
print("===========================================", file=log_file, flush=True)
Expand Down

0 comments on commit 8c9c477

Please sign in to comment.