summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xclient/bin/autotest_utils.py2
-rwxr-xr-xclient/bin/test.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/client/bin/autotest_utils.py b/client/bin/autotest_utils.py
index dae268b8..46281e40 100755
--- a/client/bin/autotest_utils.py
+++ b/client/bin/autotest_utils.py
@@ -589,7 +589,7 @@ def write_keyval(path, dictionary):
# directory name, we assume you want the file to be called keyval
if os.path.isdir(path):
path = os.path.join(path, 'keyval')
- keyval = open(path, 'w')
+ keyval = open(path, 'a')
for key in dictionary.keys():
if re.search(r'\W', key):
raise ValueError('Invalid key: ' + key)
diff --git a/client/bin/test.py b/client/bin/test.py
index 772807cc..e5fa130d 100755
--- a/client/bin/test.py
+++ b/client/bin/test.py
@@ -82,6 +82,10 @@ class test:
raise TestError(msg)
+ def write_keyval(self, dictionary):
+ write_keyval(self.resultsdir, dictionary)
+
+
def initialize(self):
pass