示例#1
0
 def _get_parser(self):
     bootstrap.create_guest_os_cfg(self.args.vt_type)
     bootstrap.create_subtests_cfg(self.args.vt_type)
     options_processor = VirtTestOptionsProcess(self.args)
     return options_processor.get_parser()
示例#2
0
import os
import sys
import common
from autotest.client.shared import logging_manager
from virttest import data_dir, bootstrap, utils_misc

test_dir = os.path.dirname(sys.modules[__name__].__file__)
test_dir = os.path.abspath(test_dir)
t_type = os.path.basename(test_dir)
shared_dir = os.path.join(data_dir.get_root_dir(), "shared")

if __name__ == "__main__":
    import optparse
    option_parser = optparse.OptionParser()
    option_parser.add_option("-v",
                             "--verbose",
                             action="store_true",
                             dest="verbose",
                             help="Exhibit debug messages")
    options, args = option_parser.parse_args()
    if options.verbose:
        logging_manager.configure_logging(utils_misc.VirtLoggingConfig(),
                                          verbose=options.verbose)

    bootstrap.create_config_files(test_dir,
                                  shared_dir,
                                  interactive=False,
                                  force_update=True)
    bootstrap.create_subtests_cfg(t_type)
    bootstrap.create_guest_os_cfg(t_type)
示例#3
0
"""
Populate/update config files for virt-test

@copyright: Red Hat 2013
"""
import os, sys
import common
from autotest.client.shared import logging_manager
from virttest import data_dir, bootstrap, utils_misc

test_dir = os.path.dirname(sys.modules[__name__].__file__)
test_dir = os.path.abspath(test_dir)
t_type = os.path.basename(test_dir)
shared_dir = os.path.join(data_dir.get_root_dir(), "shared")

if __name__ == "__main__":
    import optparse
    option_parser = optparse.OptionParser()
    option_parser.add_option("-v", "--verbose",
                      action="store_true", dest="verbose",
                      help="Exhibit debug messages")
    options, args = option_parser.parse_args()
    if options.verbose:
        logging_manager.configure_logging(utils_misc.VirtLoggingConfig(),
                                          verbose=options.verbose)

    bootstrap.create_config_files(test_dir, shared_dir, interactive=False,
                                  force_update=True)
    bootstrap.create_subtests_cfg(t_type)
    bootstrap.create_guest_os_cfg(t_type)