mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	Revert "importlib refactor lf_dataplane_test.py"
This reverts commit 685f78ff08.
			
			
This commit is contained in:
		@@ -1,4 +1,5 @@
 | 
				
			|||||||
#!/usr/bin/env python3
 | 
					#!/usr/bin/env python3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
Note: To Run this script gui should be opened with
 | 
					Note: To Run this script gui should be opened with
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -92,10 +93,11 @@ mconn: 1
 | 
				
			|||||||
mpkt: 1000
 | 
					mpkt: 1000
 | 
				
			||||||
tos: 0
 | 
					tos: 0
 | 
				
			||||||
loop_iterations: 1
 | 
					loop_iterations: 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import sys
 | 
					import sys
 | 
				
			||||||
import os
 | 
					import os
 | 
				
			||||||
import importlib
 | 
					 | 
				
			||||||
import argparse
 | 
					import argparse
 | 
				
			||||||
import time
 | 
					import time
 | 
				
			||||||
import json
 | 
					import json
 | 
				
			||||||
@@ -105,15 +107,11 @@ if sys.version_info[0] != 3:
 | 
				
			|||||||
    print("This script requires Python 3")
 | 
					    print("This script requires Python 3")
 | 
				
			||||||
    exit(1)
 | 
					    exit(1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if 'lanforge-scripts' not in sys.path:
 | 
					if 'py-json' not in sys.path:
 | 
				
			||||||
    sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../")))
 | 
					    sys.path.append(os.path.join(os.path.abspath('..'), 'py-json'))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# from cv_test_manager import cv_test
 | 
					from cv_test_manager import cv_test
 | 
				
			||||||
# from cv_test_manager import *
 | 
					from cv_test_manager import *
 | 
				
			||||||
cv_test_manager = importlib.import_module("lanforge-scripts.py-json.cv_test_manager")
 | 
					 | 
				
			||||||
cv_test = cv_test_manager.cv_test
 | 
					 | 
				
			||||||
cv_add_base_parser = cv_test_manager.cv_add_base_parser
 | 
					 | 
				
			||||||
cv_base_adjust_parser = cv_test_manager.cv_base_adjust_parser
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class DataplaneTest(cv_test):
 | 
					class DataplaneTest(cv_test):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user