From: Assaf Muller Date: Sun, 21 Jun 2015 19:34:21 +0000 (-0400) Subject: Prepare for full stack CI job X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=408af3f7dab477517b1761aeda2b76384f5fffbe;p=openstack-build%2Fneutron-build.git Prepare for full stack CI job Related-Bug: #1467275 Change-Id: I90f4794f48ae151a888f37df26c087a7fdcd9d31 --- diff --git a/TESTING.rst b/TESTING.rst index c05018e55..ca71c0f57 100644 --- a/TESTING.rst +++ b/TESTING.rst @@ -242,10 +242,7 @@ dependencies as the functional tests, using the configuration script tools/configure_for_func_testing.sh is advised (as described above). When running full-stack tests on a clean VM for the first time, we advise to run ./stack.sh successfully to make sure all Neutron's -dependencies are met. Also note that in order to preserve resources -on the gate, running the dsvm-functional suite will also run all -full-stack tests (and a new worker won't be assigned specifically for -dsvm-fullstack). Full-stack based Neutron daemons produce logs to a +dependencies are met. Full-stack based Neutron daemons produce logs to a sub-folder in /tmp/fullstack-logs (for example, a test named "test_example" will produce logs to /tmp/fullstack-logs/test_example/), so that will be a good place to look if your test is failing. diff --git a/neutron/tests/contrib/gate_hook.sh b/neutron/tests/contrib/gate_hook.sh index dc31d2f68..c5399e82b 100644 --- a/neutron/tests/contrib/gate_hook.sh +++ b/neutron/tests/contrib/gate_hook.sh @@ -7,7 +7,7 @@ set -ex VENV=${1:-"dsvm-functional"} -if [ "$VENV" == "dsvm-functional" ] +if [ "$VENV" == "dsvm-functional" ] || [ "$VENV" == "dsvm-fullstack" ] then # The following need to be set before sourcing # configure_for_func_testing. diff --git a/neutron/tests/contrib/post_test_hook.sh b/neutron/tests/contrib/post_test_hook.sh index 62d47ce01..19f72b8c7 100644 --- a/neutron/tests/contrib/post_test_hook.sh +++ b/neutron/tests/contrib/post_test_hook.sh @@ -24,13 +24,13 @@ function generate_testr_results { # holding those files to /opt/stack/logs. Files with .log suffix have their # suffix changed to .txt (so browsers will know to open the compressed # files and not download them). - if [ -d /tmp/fullstack-logs/ ]; then + if [ "$venv" == "dsvm-fullstack" ] && [ -d /tmp/fullstack-logs/ ]; then sudo find /tmp/fullstack-logs -iname "*.log" -type f -exec mv {} {}.txt \; -exec gzip -9 {}.txt \; sudo mv /tmp/fullstack-logs/* /opt/stack/logs/ fi } -if [ "$venv" == "dsvm-functional" ] +if [ "$venv" == "dsvm-functional" ] || [ "$venv" == "dsvm-fullstack" ] then owner=stack sudo_env= diff --git a/neutron/tests/functional/__init__.py b/neutron/tests/functional/__init__.py index 86c037e23..a2a87e23b 100644 --- a/neutron/tests/functional/__init__.py +++ b/neutron/tests/functional/__init__.py @@ -27,7 +27,6 @@ def load_tests(loader, tests, pattern): target_dirs = [ this_dir, os.path.join(parent_dir, 'retargetable'), - os.path.join(parent_dir, 'fullstack'), ] for start_dir in target_dirs: new_tests = loader.discover(start_dir=start_dir, pattern=pattern)