Setup the pep8 config to check bin/glance-control
Fixes bug 1067518. Change-Id: I01abbf9571f303b5d20739312300a2f6b9d5a7b7
This commit is contained in:
parent
6e43a9691b
commit
1a20651030
@ -106,9 +106,9 @@ def do_start(verb, pid_file, server, args):
|
||||
|
||||
try:
|
||||
resource.setrlimit(resource.RLIMIT_NOFILE,
|
||||
(MAX_DESCRIPTORS, MAX_DESCRIPTORS))
|
||||
(MAX_DESCRIPTORS, MAX_DESCRIPTORS))
|
||||
resource.setrlimit(resource.RLIMIT_DATA,
|
||||
(MAX_MEMORY, MAX_MEMORY))
|
||||
(MAX_MEMORY, MAX_MEMORY))
|
||||
except ValueError:
|
||||
action = 'increase file descriptor limit'
|
||||
print 'Unable to %s. Running as non-root?' % action
|
||||
@ -190,7 +190,6 @@ def do_start(verb, pid_file, server, args):
|
||||
break
|
||||
time.sleep(0.05)
|
||||
|
||||
|
||||
conf_file = None
|
||||
if args and os.path.exists(args[0]):
|
||||
conf_file = os.path.abspath(os.path.expanduser(args[0]))
|
||||
@ -273,7 +272,7 @@ if __name__ == '__main__':
|
||||
cfg.BoolOpt('respawn',
|
||||
default=False,
|
||||
help='Restart service on unexpected death'),
|
||||
]
|
||||
]
|
||||
CONF.register_cli_opts(opts)
|
||||
|
||||
args = config.parse_args(usage=USAGE)
|
||||
|
2
tox.ini
2
tox.ini
@ -18,7 +18,7 @@ downloadcache = ~/cache/pip
|
||||
|
||||
[testenv:pep8]
|
||||
deps = pep8==1.3.3
|
||||
commands = pep8 --ignore=E125,E126,E711 --repeat --show-source --exclude=.venv,.tox,dist,doc,openstack .
|
||||
commands = pep8 --ignore=E125,E126,E711 --repeat --show-source --exclude=.venv,.tox,dist,doc,openstack . bin/glance-control
|
||||
|
||||
[testenv:cover]
|
||||
setenv = NOSE_WITH_COVERAGE=1
|
||||
|
Loading…
Reference in New Issue
Block a user