8 Commits

Author SHA1 Message Date
Victor Stinner
5eaae59450 .testr.conf: revert workaround of testtools bug
Revert the change I4c88f1891f53c6559bca71bf657aa30df2101280.
The testtools bug was fixed, the "| cat" workaround is no more
needed.

Fix for subunit (for testtools), workaround the eventlet bug:
https://github.com/testing-cabal/subunit/pull/14

Fix of the root cause in eventlet:
https://github.com/eventlet/eventlet/issues/248

The bug was limited to Python 3 and related to non-blocking stdout.

See also the similar change for oslo.messaging:
I207b7a7e82cbd7e5848231115b3577be7b600638.

Change-Id: Iad759af7fbd8a404b7ac361763b27214f3a49ac3
Related-Bug: 1492505
2016-02-19 14:29:07 +01:00
Robert Collins
065275e51f Workaround test stream corruption issue.
Change-Id: I4c88f1891f53c6559bca71bf657aa30df2101280
Closes-Bug: #1492505
2015-09-05 04:19:40 +00:00
Maru Newby
f20b1d4240 Add an explicit tox job for functional tests
This change is in support of adding a new jenkins job dedicated
to functional testing.  Functional tests will no longer be
run as part of the unit tests.

Change-Id: Ia99940f7e5a2165720ae2a74aadf62ff17ad3d75
2014-02-05 17:11:52 +00:00
Maru Newby
acf0209b28 Add support for managing async processes
Interacting with a long-running asynchronous process requires the
use of non-blocking io.  This change adds a helper class that can
launch a long-running process and read stdout and stderr in a
non-blocking fashion via eventlet.

This functionality is intended to support monitoring ovsdb via
a long-running and root-privileged invocation of ovsdb-client.

The complexity of the system interaction in this patch suggested
the addition of a functional test that validated actual behaviour.
The test was added under the neutron/tests/functional path which
is now included in the testr search path.

Partial-Bug: #1177973

Change-Id: I9969e556acecf7a9e77d873371cc2ec2647be011
2013-10-14 07:20:02 +00:00
Maru Newby
96adb2a6c2 Default to not capturing log output in tests
Viewing log output while tests are still running can be useful for
debugging, but log output was previously always captured.  This
change ensures that log capture is off by default, but can still
be enabled by setting OS_LOG_CAPTURE=1 in the shell environment.

testr invocation is unchanged and will continue to capture logs by
default.

Change-Id: I9d0fb648541280cacfebb47f67f608378ae66ef3
2013-09-03 17:32:32 +00:00
Mark McClain
ee3fe4e836 Rename Quantum to Neutron
This change renames everything to Neutron while providing backwards
compatible adjustments for Grizzly configuration files.

implements blueprint: remove-use-of-quantum

Change-Id: Ie7d07ba7c89857e13d4ddc8f0e9b68de020a3d19
2013-07-06 15:02:43 -04:00
Maru Newby
91bd4bbaea Allow pdb debugging in manually-invoked tests.
* The old behavior required setting environment variables to
   disable capture of stdout and stderr to allow debugging via pdb.
   The new behavior requires enabling capture of stdout/stderr
   instead. This is already the case in nova.
 * testr behavior is unmodified.
 * Tip 'o the hat to Robert Collins (lifeless)

Change-Id: Ica021eeab07d5a540ce42436c9cc8000c3fd239a
2013-04-09 02:46:40 +00:00
Monty Taylor
646c918732 Add initial testr support.
This doesn't really do much other that add the needed bits to the repo to
start hacking on testr support in small chunks.

Change-Id: I34fc57fdc7c9ebda8ffa2357a2ef962c7ab41bfa
2013-02-28 17:21:05 -05:00