diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-02-25 13:50:48 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2013-06-02 14:36:34 -0500 |
commit | e1352fa7f5c8f565cc894f29e333745260ad853b (patch) | |
tree | 65ea2b92edcee0fe1a4ca76878f02cb64ec7c8e7 /src/lib/Bcfg2/Options.py | |
parent | 9de1086c937c5f8919cb279e7f601d7de064f901 (diff) | |
download | bcfg2-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/Bcfg2/Options.py')
-rw-r--r-- | src/lib/Bcfg2/Options.py | 8 |
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', |