summaryrefslogtreecommitdiffstats
path: root/run_tests.sh
diff options
context:
space:
mode:
authorClark Boylan <clark.boylan@gmail.com>2013-01-07 11:03:30 -0800
committerClark Boylan <clark.boylan@gmail.com>2013-01-07 11:03:30 -0800
commit7224fde0f0d6206136b411276f8ee8bce8749dd1 (patch)
tree7eda5bbdeadc5732234c3e7e94249563a9799190 /run_tests.sh
parente1c7b18c7f3c8d97ba7b2cccf27b968ad4710735 (diff)
downloadnova-7224fde0f0d6206136b411276f8ee8bce8749dd1.tar.gz
nova-7224fde0f0d6206136b411276f8ee8bce8749dd1.tar.xz
nova-7224fde0f0d6206136b411276f8ee8bce8749dd1.zip
Invert test stream capture logic for debugging.
Previously the default test behavior was to capture stdout and stderr. Make the new default to not capture stdout and stderr then set .testr.conf to always capture these streams when running tests under testr. The motiviation behind this change is that you will want these streams to be captured when running under testr, but when not running under testr you may not want to capture them. An example of this would be running `python -m testtools.run test_name` with a change to test_name to invoke the python debugger (capturing stdout and stderr interferes with normal debugger functionality). Also, only invoke the test timeout by default when running under testr. This is done for the same reason as above. When running a test under the debugger the timeout interferes with debugging. Change-Id: I42cbbdadb2f221ec439e92a6800d14e8436bb77b
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-xrun_tests.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/run_tests.sh b/run_tests.sh
index a3ed97803..a34cab5a0 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -59,8 +59,6 @@ recreate_db=1
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
-OS_STDOUT_NOCAPTURE=False
-OS_STDERR_NOCAPTURE=False
for arg in "$@"; do
process_option $arg