mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-30 18:27:53 +00:00
test_generic: Fix os.path.exists error
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -235,7 +235,7 @@ python3 ./test_generic.py
|
||||
if args.report_file is None:
|
||||
new_file_path = str(datetime.datetime.now().strftime("%Y-%m-%d-%H-h-%M-m-%S-s")).replace(':',
|
||||
'-') + '-test_generic' # create path name
|
||||
if not os.path.exists('/home/lanforge/report-data/'):
|
||||
if os.path.exists('/home/lanforge/report-data/'):
|
||||
path = os.path.join('/home/lanforge/report-data/', new_file_path)
|
||||
os.mkdir(path)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user