Temporarily Disable Linters

This change should disable the Ansible Linters in tox.ini
so that we can make the existing pep8 tests voting.

Linting should be re-enabled in tox once Ansible playbooks
have their errors corrected.

This commit also corrects some python errors that snuck into
Shaker.py

Change-Id: I5d64985849b9e31b91c9000dba7238cc79bd2009
This commit is contained in:
jkilpatr 2016-08-31 10:05:38 -04:00
parent 9845fa0a99
commit 976231a58d
4 changed files with 12 additions and 7 deletions

View File

@ -1,2 +1,6 @@
# This is a cross-platform list tracking distribution packages needed by tests;
# see http://docs.openstack.org/infra/bindep/ for additional information.
libffi-dev [platform:dpkg]
libffi-devel [platform:rpm]
virtual/libffi [platform:gentoo]

View File

@ -405,8 +405,8 @@ class Shaker(WorkloadBase.WorkloadBase):
test_time = default_time
for interval in range(0, test_time + 9):
es_list.append(
datetime.datetime.utcnow() +
datetime.timedelta(0,interval))
datetime.datetime.utcnow() +
datetime.timedelta(0,interval))
for run in range(self.config['browbeat']['rerun']):
self.logger.info("Scenario: {}".format(scenario['name']))
@ -427,7 +427,7 @@ class Shaker(WorkloadBase.WorkloadBase):
time_stamp1, "shaker", scenario['name'], run)
self.run_scenario(
scenario, result_dir, test_name, fname, shaker_uuid,
es_ts, es_list, run)
es_ts, es_list, run)
self.get_stats()
else:
self.logger.info(

View File

@ -142,7 +142,8 @@ class BrowbeatPlugin(neutron_utils.NeutronScenario,
user, sip)
s1_exitcode, s1_stdout, s1_stderr = jump_ssh.execute(cmd)
if retry < 1:
LOG.error("Error : Issue reaching {} the guests through the Jump host".format(sip))
LOG.error(
"Error : Issue reaching {} the guests through the Jump host".format(sip))
return 1
if s1_exitcode is 0:
ready = True
@ -157,7 +158,7 @@ class BrowbeatPlugin(neutron_utils.NeutronScenario,
self._run_command_over_ssh(jump_ssh, {'remote_path': cmd})
# Quick single test
#debug = "--message-sizes=1024 --instances=1"
# debug = "--message-sizes=1024 --instances=1"
debug = None
# Start uperf against private address

View File

@ -22,8 +22,8 @@ install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstac
whitelist_externals = bash
commands =
flake8
bash -c "cd ansible; find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \
ansible-lint"
# bash -c "cd ansible; find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \
# ansible-lint"
[testenv:pep8]
commands = flake8 {posargs} --exclude=ansible