diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2014-10-22 11:02:51 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2014-11-10 17:35:43 -0600 |
commit | 8318378b1ee2f6c0a9e5446036c7409228545e16 (patch) | |
tree | 119f85fb74fe7535089f3b13107c62811768c653 /testsuite/common.py | |
parent | 987023ba91d38a58c2fd4269bdfd0bf40648b7de (diff) | |
download | bcfg2-8318378b1ee2f6c0a9e5446036c7409228545e16.tar.gz bcfg2-8318378b1ee2f6c0a9e5446036c7409228545e16.tar.bz2 bcfg2-8318378b1ee2f6c0a9e5446036c7409228545e16.zip |
testsuite: better debug capturing for options tests
Diffstat (limited to 'testsuite/common.py')
-rw-r--r-- | testsuite/common.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/common.py b/testsuite/common.py index 49579d7ef..a86e9c5d9 100644 --- a/testsuite/common.py +++ b/testsuite/common.py @@ -38,7 +38,13 @@ def set_setup_default(option, value=None): if not hasattr(Bcfg2.Options.setup, option): setattr(Bcfg2.Options.setup, option, value) +# these two variables do slightly different things for unit tests; the +# former skips config file reading, while the latter sends option +# debug logging to stdout so it can be captured. These are separate +# because we want to enable config file reading in order to test +# option parsing. Bcfg2.Options.Parser.unit_test = True +Bcfg2.Options.Options.unit_test = True try: import django.conf |