Add update_config.py script

So that we can upgrade forcefully all config files for
a given test, useful for automated regression testing
of virt-tests.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 08cf5abc
#!/usr/bin/python
"""
Populate/update config files for virt-test
@copyright: Red Hat 2013
"""
import os, sys
import common
from virttest import data_dir, bootstrap
test_dir = os.path.dirname(sys.modules[__name__].__file__)
test_dir = os.path.abspath(test_dir)
shared_dir = os.path.join(data_dir.get_root_dir(), "shared")
if __name__ == "__main__":
bootstrap.create_config_files(test_dir, shared_dir, interactive=False,
force_update=True)
#!/usr/bin/python
"""
Populate/update config files for virt-test
@copyright: Red Hat 2013
"""
import os, sys
import common
from virttest import data_dir, bootstrap
test_dir = os.path.dirname(sys.modules[__name__].__file__)
test_dir = os.path.abspath(test_dir)
shared_dir = os.path.join(data_dir.get_root_dir(), "shared")
if __name__ == "__main__":
bootstrap.create_config_files(test_dir, shared_dir, interactive=False,
force_update=True)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册