Skip to content

Commit

Permalink
Bug-fix. Now it updates the makefiles after renaming a benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianomg committed Jan 30, 2024
1 parent be00d2a commit 3948168
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/rename_bench_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
from src.utils.shell import *
from src.utils.dict import *

from .update_option import *

#from delete_option import *

# rename a benchmark from the suite
Expand Down Expand Up @@ -100,6 +102,17 @@ def rename_bench_func(spbench_path, args):

print('\n ' + old_bench_id + " -> " + new_bench_id + '\n')

# update the makefiles

#create an custom args object to call the update function
class Custom_update_args:
def __init__(self, bench_id):
self.app_id = ''
self.ppi_id = ''
self.benchmark_id = bench_id

update_func(spbench_path, Custom_update_args(new_bench_id))

sys.exit()

print('\n Error while renaming your new benchmark\n')
Expand Down

0 comments on commit 3948168

Please sign in to comment.