示例#1
0
文件: builder.py 项目: jistr/rejviz
def main():
    try:
        tmp_dir = tmp.create_dir()
        LOG.debug('Created tmp directory %s', tmp_dir)
        virt_builder_args = _process_args(sys.argv[1:], tmp_dir)
        _run_virt_builder(virt_builder_args)
    finally:
        tmp.remove_dir(tmp_dir)
        LOG.debug('Removed tmp directory %s', tmp_dir)
示例#2
0
def main():
    try:
        tmp_dir = tmp.create_dir()
        LOG.debug('Created tmp directory %s', tmp_dir)
        virt_builder_args = _process_args(sys.argv[1:], tmp_dir)
        _run_virt_builder(virt_builder_args)
    finally:
        tmp.remove_dir(tmp_dir)
        LOG.debug('Removed tmp directory %s', tmp_dir)
示例#3
0
 def test_remove_dir_ok(self, rmtree):
     tmp.remove_dir('/tmp/rejviz-builder-123')
     rmtree.assert_called_with('/tmp/rejviz-builder-123')
示例#4
0
文件: test_tmp.py 项目: jistr/rejviz
 def test_remove_dir_ok(self, rmtree):
     tmp.remove_dir('/tmp/rejviz-builder-123')
     rmtree.assert_called_with('/tmp/rejviz-builder-123')