summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-02-25 13:50:48 -0500
committerSol Jerome <sol.jerome@gmail.com>2013-06-02 14:36:34 -0500
commite1352fa7f5c8f565cc894f29e333745260ad853b (patch)
tree65ea2b92edcee0fe1a4ca76878f02cb64ec7c8e7 /src/lib
parent9de1086c937c5f8919cb279e7f601d7de064f901 (diff)
downloadbcfg2-e1352fa7f5c8f565cc894f29e333745260ad853b.tar.gz
bcfg2-e1352fa7f5c8f565cc894f29e333745260ad853b.tar.bz2
bcfg2-e1352fa7f5c8f565cc894f29e333745260ad853b.zip
bcfg2-test: added option to spawn multiple child processes to run tests
(cherry picked from commit 6fcce024d45c0f6312b17c19140272f192f18841) Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: src/lib/Bcfg2/Options.py src/sbin/bcfg2-test
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Bcfg2/Options.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Options.py b/src/lib/Bcfg2/Options.py
index a6511f88e..64408693a 100644
--- a/src/lib/Bcfg2/Options.py
+++ b/src/lib/Bcfg2/Options.py
@@ -334,6 +334,12 @@ def get_bool(val):
raise ValueError("Not a boolean value", val)
+def get_int(val):
+ """ given a string value of an integer configuration option,
+ return an actual int """
+ return int(val)
+
+
def get_timeout(val):
""" convert the timeout value into a float or None """
if val is None:
@@ -863,7 +869,7 @@ TEST_CHILDREN = \
cmd='--children',
odesc='<children>',
cf=('bcfg2_test', 'children'),
- cook=int,
+ cook=get_int,
long_arg=True)
TEST_XUNIT = \
Option('Output an XUnit result file with --children',