Skip to content

Commit

Permalink
Move payload_filepath to homedir
Browse files Browse the repository at this point in the history
The file is created in the /tmp directory and other users do not have write access. To avoid unwanted interference, the file is moved to the home directory.

Signed-off-by: EESergey <[email protected]>
  • Loading branch information
EESergey authored Jul 29, 2024
1 parent 68005c1 commit 4973030
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scenarios/preset/preset_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from argparse import Namespace
from concurrent.futures import ProcessPoolExecutor
from os.path import expanduser

from helpers.cmd import random_payload
from helpers.neofs_cli import create_container, upload_object
Expand Down Expand Up @@ -33,7 +34,7 @@
def main():
container_list = []
objects_struct = []
payload_filepath = '/tmp/data_file_' + args.size + 'k'
payload_filepath = expanduser("~") + '/data_file_' + args.size + 'k'

endpoints = args.endpoint.split(',')

Expand Down

0 comments on commit 4973030

Please sign in to comment.