mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 02:38:03 +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: |     if args.report_file is None: | ||||||
|         new_file_path = str(datetime.datetime.now().strftime("%Y-%m-%d-%H-h-%M-m-%S-s")).replace(':', |         new_file_path = str(datetime.datetime.now().strftime("%Y-%m-%d-%H-h-%M-m-%S-s")).replace(':', | ||||||
|                                                                                                  '-') + '-test_generic'  # create path name |                                                                                                  '-') + '-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) |             path = os.path.join('/home/lanforge/report-data/', new_file_path) | ||||||
|             os.mkdir(path) |             os.mkdir(path) | ||||||
|         else: |         else: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Matthew Stidham
					Matthew Stidham