def tweak_db(prefix):
engine = prefix.virt_env.engine_vm()
tweak_db_file = os.path.join(
os.environ.get('SUITE'),
'../common/deploy-scripts/db_config_tweaks.sh'
)
engine.copy_to(tweak_db_file, '/root')
result = engine.ssh(
[
'bash',
'/root/db_config_tweaks.sh',
],
)
nt.eq_(
result.code, 0, 'tweaking postgres configuration failed. Exit code is %s' % result.code
)
评论列表
文章目录