Commit cfcfcbbb authored by Julien Muchembled's avatar Julien Muchembled

testnode: minimize writes to storage holding MySQL databases

parent 85e571bc
Changes Changes
======= =======
0.4.37 (2014-01-21)
-------------------
* erp5.util.testnode:
- Minimize writes to storage holding MySQL databases.
0.4.36 (2013-06-30) 0.4.36 (2013-06-30)
------------------- -------------------
......
...@@ -34,6 +34,7 @@ import shutil ...@@ -34,6 +34,7 @@ import shutil
import sys import sys
import glob import glob
import argparse import argparse
import json
from slapos import client from slapos import client
MAX_PARTIONS = 10 MAX_PARTIONS = 10
...@@ -357,6 +358,13 @@ class SlapOSControler(object): ...@@ -357,6 +358,13 @@ class SlapOSControler(object):
config['instance_dict']['report-url'] = config.get("report-url", "") config['instance_dict']['report-url'] = config.get("report-url", "")
config['instance_dict']['report-project'] = config.get("report-project", "") config['instance_dict']['report-project'] = config.get("report-project", "")
config['instance_dict']['suite-url'] = config.get("suite-url", "") config['instance_dict']['suite-url'] = config.get("suite-url", "")
# XXX: Hack to minimize writes to storage holding MySQL databases.
# Note this is something we want for all test suites, so it would
# not be better to define this parameter on each test suite.
config['instance_dict']['_'] = json.dumps({"mariadb": {
"relaxed-writes": True,
"mariadb-relaxed-writes": True, # BBB
}})
for path in self.software_path_list: for path in self.software_path_list:
try: try:
self.slap.registerOpenOrder().request(path, self.slap.registerOpenOrder().request(path,
......
...@@ -2,7 +2,7 @@ from setuptools import setup, find_packages ...@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
import glob import glob
import os import os
version = '0.4.36' version = '0.4.37'
name = 'erp5.util' name = 'erp5.util'
long_description = open("README.erp5.util.txt").read() + "\n" long_description = open("README.erp5.util.txt").read() + "\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment