Skip to content

Commit

Permalink
Removed links in power experiments(#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
maria-18-git committed Oct 24, 2023
1 parent 36e5015 commit 54e5fab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base_loadgen_program/code_axs.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ def link_to_power_client_entry(output_entry, symlink_to, power_client_entrydic_p

power_client_entry_path = os.path.dirname( symlink_to )

if os.path.exists( symlink_to ):
os.unlink( symlink_to )
if os.path.exists(power_client_entrydic_path ):
entrydic = load_json( power_client_entrydic_path )

logs_name = "testing_logs"
Expand All @@ -71,7 +70,8 @@ def link_to_power_client_entry(output_entry, symlink_to, power_client_entrydic_p
entrydic[entry_name_dict] = power_workload_entry_name
save_json( entrydic, power_client_entrydic_path, indent=4 )

os.symlink( power_workload_path, os.path.join(power_client_entry_path, logs_name ), target_is_directory=True )
if os.path.exists( symlink_to ):
os.unlink( symlink_to )
os.symlink( power_workload_path, symlink_to, target_is_directory=True )

return output_entry
Expand Down

0 comments on commit 54e5fab

Please sign in to comment.