82d417b9e6
Fresh start for the StarlingX automation framework. Change-Id: Ie265e0791024f45f71faad6315c2b91b022934d1
23 lines
877 B
Python
23 lines
877 B
Python
from optparse import OptionParser
|
|
|
|
from config.configuration_file_locations_manager import ConfigurationFileLocationsManager
|
|
from config.configuration_manager import ConfigurationManager
|
|
from framework.scanning.objects.test_scanner_uploader import TestScannerUploader
|
|
|
|
if __name__ == '__main__':
|
|
"""
|
|
This Function will scan the repository for all test cases and update the database.
|
|
|
|
Usage Example:
|
|
python3 test_case_scanner.py --database_config_file=path/to_my/database_config_file.py
|
|
|
|
"""
|
|
|
|
configuration_locations_manager = ConfigurationFileLocationsManager()
|
|
parser = OptionParser()
|
|
configuration_locations_manager.set_configs_from_options_parser(parser)
|
|
ConfigurationManager.load_configs(configuration_locations_manager)
|
|
|
|
test_scanner_uploader = TestScannerUploader("testcases")
|
|
test_scanner_uploader.scan_and_upload_tests()
|