Skip to content

Commit a1f9b10

Browse files
fix(disk_perf): csv paths and add logging
Signed-off-by: Mathieu Labourier <[email protected]>
1 parent 1c1a307 commit a1f9b10

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/storage/benchmarks/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,10 @@ def prev_results(pytestconfig):
159159
return {}
160160
csv_path = csv_uri
161161
if urlparse(csv_uri).scheme != "":
162-
csv_path = f"{uuid4()}.csv"
162+
logging.info("Detected CSV path as an url")
163+
csv_path = f"/tmp/{uuid4()}.csv"
163164
urllib.request.urlretrieve(csv_uri, csv_path)
165+
logging.info(f"Fetching CSV file from {csv_uri} to {csv_path}")
164166
if not os.path.exists(csv_path):
165167
raise FileNotFoundError(csv_path)
166168
return load_results_from_csv(csv_path)

tests/storage/benchmarks/test_disk_perf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# Tests default settings #
1414

15-
CSV_FILE = f"/tmp/results_{datetime.now().strftime('%Y-%m-%d_%H:%M:%S')}.csv"
15+
CSV_FILE = f"/tmp/results_{datetime.now().strftime('%Y-%m-%d_%H-%M-%S')}.csv"
1616

1717
DEFAULT_SAMPLES_NUM = 10
1818
DEFAULT_SIZE = "1G"

0 commit comments

Comments
 (0)