mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-25 13:47:27 +00:00
Cleanup: non-Python semicolon infection.
This commit is contained in:
parent
21893e51b3
commit
99dcf267ea
2 changed files with 5 additions and 5 deletions
|
@ -86,11 +86,11 @@ def setup():
|
||||||
|
|
||||||
# These 3 should always be present.
|
# These 3 should always be present.
|
||||||
if 's3' not in config:
|
if 's3' not in config:
|
||||||
raise RuntimeError('Your config file is missing the s3 section!');
|
raise RuntimeError('Your config file is missing the s3 section!')
|
||||||
if 'defaults' not in config.s3:
|
if 'defaults' not in config.s3:
|
||||||
raise RuntimeError('Your config file is missing the s3.defaults section!');
|
raise RuntimeError('Your config file is missing the s3.defaults section!')
|
||||||
if 'fixtures' not in config:
|
if 'fixtures' not in config:
|
||||||
raise RuntimeError('Your config file is missing the fixtures section!');
|
raise RuntimeError('Your config file is missing the fixtures section!')
|
||||||
|
|
||||||
if config.fixtures.has_key('bucket prefix'):
|
if config.fixtures.has_key('bucket prefix'):
|
||||||
template = config.fixtures['bucket prefix']
|
template = config.fixtures['bucket prefix']
|
||||||
|
|
|
@ -10,7 +10,7 @@ import sys
|
||||||
|
|
||||||
|
|
||||||
def parse_opts():
|
def parse_opts():
|
||||||
parser = OptionParser();
|
parser = OptionParser()
|
||||||
parser.add_option('-O', '--outfile', help='write output to FILE. Defaults to STDOUT', metavar='FILE')
|
parser.add_option('-O', '--outfile', help='write output to FILE. Defaults to STDOUT', metavar='FILE')
|
||||||
parser.add_option('-b', '--bucket', dest='bucket', help='push objects to BUCKET', metavar='BUCKET')
|
parser.add_option('-b', '--bucket', dest='bucket', help='push objects to BUCKET', metavar='BUCKET')
|
||||||
parser.add_option('--seed', dest='seed', help='optional seed for the random number generator')
|
parser.add_option('--seed', dest='seed', help='optional seed for the random number generator')
|
||||||
|
@ -73,7 +73,7 @@ def main():
|
||||||
Results are printed to the terminal and written in CSV format to
|
Results are printed to the terminal and written in CSV format to
|
||||||
./siege.log
|
./siege.log
|
||||||
'''
|
'''
|
||||||
(options, args) = parse_opts();
|
(options, args) = parse_opts()
|
||||||
|
|
||||||
#SETUP
|
#SETUP
|
||||||
random.seed(options.seed if options.seed else None)
|
random.seed(options.seed if options.seed else None)
|
||||||
|
|
Loading…
Reference in a new issue