~ubuntu-branches/ubuntu/saucy/keystone/saucy

« back to all changes in this revision

Viewing changes to .pc/fix-ubuntu-tests.patch/run_tests.sh

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Chuck Short, James Page, Adam Gandelman
  • Date: 2013-09-09 18:02:41 UTC
  • mfrom: (1.1.36)
  • Revision ID: package-import@ubuntu.com-20130909180241-5pizm6rcauhg4x93
Tags: 1:2013.2~b3-0ubuntu1
[ Chuck Short ]
* New upstream release. 
* debian/control: Add python-oslo.sphinx as a build dependency.
* debian/control: Add python-babel as a build dependency.
* debian/control: Add python-dogpile.cache as a build dependency.
* debian/control: Add python-oauth2 as a build dependency. 
* debian/patches/sql_connection.patch: Refreshed

[ James Page ]
* d/patches/fix-ubuntu-tests.patch: Fixup for new tests location.
* d/patches/ubuntu-test-overrides.patch: Override testing defaults
  using patches.
* d/rules: Rework for patching approach for test_overrides.conf.
* d/tests/test_overrides.conf: Dropped - no longer required.
* d/control: Add python-netaddr to BD's.

[ Adam Gandelman ]
* debian/control: Add python-testtools to Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
  echo "  -x, --stop               Stop running tests after the first error or failure."
28
28
  echo "  -f, --force              Force a clean re-build of the virtual environment. Useful when dependencies have been added."
29
29
  echo "  -u, --update             Update the virtual environment with any newer package versions"
30
 
  echo "  -p, --pep8               Just run pep8"
31
 
  echo "  -P, --no-pep8            Don't run pep8"
 
30
  echo "  -p, --pep8               Just run flake8"
 
31
  echo "  -8, --8                  Just run flake8, don't show PEP8 text for each error"
 
32
  echo "  -P, --no-pep8            Don't run flake8"
32
33
  echo "  -c, --coverage           Generate coverage report"
33
34
  echo "  -h, --help               Print this usage message"
34
35
  echo "  -xintegration            Ignore all keystoneclient test cases (integration tests)"
95
96
 
96
97
function cleanup_test_db {
97
98
  # Default test settings will leave around some test*.db files
98
 
  # TODO(termie): this could probably be moved into tests/__init__.py
 
99
  # TODO(termie): this could probably be moved into keystone/tests/__init__.py
99
100
  #               but there have been some issues with creating that
100
101
  #               file for some users
101
 
  rm -f tests/test*.db
 
102
  rm -f keystone/tests/*.db
102
103
}
103
104
 
104
105
function run_tests {
126
127
 
127
128
 
128
129
  echo "Running flake8 ..."
129
 
  # Opt-out files from flake8
130
 
  ignore_scripts="*.pyc,*.pyo,*.sh,*.swp,*.rst"
131
 
  ignore_files="*.txt"
132
 
  ignore_dirs=".venv,.tox,dist,doc,openstack,vendor,*egg"
133
 
  ignore="$ignore_scripts,$ignore_files,$ignore_dirs"
134
 
  srcfiles="."
135
130
  # Just run flake8 in current environment
136
 
  echo ${wrapper} flake8 $FLAGS --show-source \
137
 
    --exclude=${ignore} ${srcfiles} | tee pep8.txt
138
 
  ${wrapper} flake8 $FLAGS --show-source \
139
 
    --exclude=${ignore} ${srcfiles} | tee pep8.txt
 
131
  echo ${wrapper} flake8 $FLAGS | tee pep8.txt
 
132
  ${wrapper} flake8 $FLAGS | tee pep8.txt
140
133
}
141
134
 
142
135
NOSETESTS="nosetests $noseopts $noseargs"