From 4973030e9315a6f938797e5bfd8a3e6b494e474c Mon Sep 17 00:00:00 2001 From: EESergey Date: Mon, 29 Jul 2024 20:37:57 +0200 Subject: [PATCH] Move payload_filepath to homedir 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 --- scenarios/preset/preset_grpc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scenarios/preset/preset_grpc.py b/scenarios/preset/preset_grpc.py index 37d58a2..c8c7289 100755 --- a/scenarios/preset/preset_grpc.py +++ b/scenarios/preset/preset_grpc.py @@ -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 @@ -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(',')