summaryrefslogtreecommitdiff
path: root/client/bin/autotest_utils.py
diff options
context:
space:
mode:
authormbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2007-10-15 23:06:53 +0000
committermbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2007-10-15 23:06:53 +0000
commit926720465318a1f6f23fc46e330ae4f116d914db (patch)
tree8d39231ad0923aad349c9ff2f861de533c2bb4e7 /client/bin/autotest_utils.py
parentd61d5d380f7abd2f0207b42eec10d398befe103a (diff)
Fix up keyval not to require numbers
Signed-off-by: Martin J. Bligh <mbligh@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@800 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'client/bin/autotest_utils.py')
-rwxr-xr-xclient/bin/autotest_utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/client/bin/autotest_utils.py b/client/bin/autotest_utils.py
index 0c4390c4..45628a55 100755
--- a/client/bin/autotest_utils.py
+++ b/client/bin/autotest_utils.py
@@ -542,9 +542,7 @@ def write_keyval(dirname, dictionary):
value = '%s' % dictionary[key] # convert numbers to strings
if re.search(r'\W', key):
raise 'Invalid key: ' + key
- if re.search(r'[^\d\.]', value):
- raise 'Invalid value %s for key %s' % (value, key)
- keyval.write('%s=%s\n' % (key, value))
+ keyval.write('%s=%s\n' % (key, str(value)))
keyval.close()