From e1352fa7f5c8f565cc894f29e333745260ad853b Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Mon, 25 Feb 2013 13:50:48 -0500 Subject: bcfg2-test: added option to spawn multiple child processes to run tests (cherry picked from commit 6fcce024d45c0f6312b17c19140272f192f18841) Signed-off-by: Sol Jerome Conflicts: src/lib/Bcfg2/Options.py src/sbin/bcfg2-test --- src/lib/Bcfg2/Options.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lib/Bcfg2') 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='', cf=('bcfg2_test', 'children'), - cook=int, + cook=get_int, long_arg=True) TEST_XUNIT = \ Option('Output an XUnit result file with --children', -- cgit v1.2.3-1-g7c22