File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,10 @@ def prev_results(pytestconfig):
159
159
return {}
160
160
csv_path = csv_uri
161
161
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"
163
164
urllib .request .urlretrieve (csv_uri , csv_path )
165
+ logging .info (f"Fetching CSV file from { csv_uri } to { csv_path } " )
164
166
if not os .path .exists (csv_path ):
165
167
raise FileNotFoundError (csv_path )
166
168
return load_results_from_csv (csv_path )
Original file line number Diff line number Diff line change 12
12
13
13
# Tests default settings #
14
14
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"
16
16
17
17
DEFAULT_SAMPLES_NUM = 10
18
18
DEFAULT_SIZE = "1G"
You can’t perform that action at this time.
0 commit comments