Commit 9bb29130 authored by Matt Traudt's avatar Matt Traudt Committed by juga
Browse files

s/DEBUG/debug/

parent 5254ea6d
......@@ -19,7 +19,7 @@ def persistent_empty_dotsbws(parser):
'''
d = TemporaryDirectory()
args = parser.parse_args(
'-d {} --log-level DEBUG init'.format(d.name).split())
'-d {} --log-level debug init'.format(d.name).split())
conf = get_config(args)
sbws.core.init.main(args, conf)
os.makedirs(os.path.join(d.name, 'datadir'))
......
......@@ -22,7 +22,7 @@ def assert_within(value, target, radius):
def get_everything_to_measure(dotsbws, cont, parser):
args = parser.parse_args(
'-d {} --log-level DEBUG scanner'.format(dotsbws).split())
'-d {} --log-level debug scanner'.format(dotsbws).split())
conf = get_config(args)
conf['destinations']['foo'] = 'on'
conf['destinations.foo'] = {}
......
......@@ -14,7 +14,7 @@ def static_time(value):
def get_global_stuff(dotsbws, cont, parser):
args = parser.parse_args(
'-d {} --log-level DEBUG'.format(dotsbws).split())
'-d {} --log-level debug'.format(dotsbws).split())
conf = get_config(args)
rl = RelayList(args, conf, cont)
return {
......
......@@ -95,7 +95,7 @@ def empty_dotsbws(parser):
'''
d = TemporaryDirectory()
args = parser.parse_args(
'-d {} --log-level DEBUG init'.format(d.name).split())
'-d {} --log-level debug init'.format(d.name).split())
conf = get_config(args)
sbws.core.init.main(args, conf)
return d
......
......@@ -13,7 +13,7 @@ def test_cleanup_no_dotsbws(tmpdir, caplog, parser):
caplog.set_level(logging.DEBUG)
dotsbws = tmpdir
args = parser.parse_args(
'-d {} --log-level DEBUG cleanup'.format(dotsbws).split())
'-d {} --log-level debug cleanup'.format(dotsbws).split())
conf = get_config(args)
try:
sbws.core.cleanup.main(args, conf)
......@@ -27,7 +27,7 @@ def test_cleanup_no_dotsbws(tmpdir, caplog, parser):
def test_cleanup_no_datadir(empty_dotsbws, caplog, parser):
dotsbws = empty_dotsbws
args = parser.parse_args(
'-d {} --log-level DEBUG cleanup'.format(dotsbws.name).split())
'-d {} --log-level debug cleanup'.format(dotsbws.name).split())
conf = get_config(args)
try:
sbws.core.cleanup.main(args, conf)
......@@ -42,7 +42,7 @@ def test_cleanup_no_datadir(empty_dotsbws, caplog, parser):
def test_cleanup_small_stale(empty_dotsbws_datadir, caplog, parser):
dotsbws = empty_dotsbws_datadir
args = parser.parse_args(
'-d {} --log-level DEBUG cleanup'.format(dotsbws.name).split())
'-d {} --log-level debug cleanup'.format(dotsbws.name).split())
conf = get_config(args)
conf['general']['data_period'] = '1'
conf['cleanup']['stale_days'] = '2'
......@@ -60,7 +60,7 @@ def test_cleanup_small_stale(empty_dotsbws_datadir, caplog, parser):
def test_cleanup_small_rotten(empty_dotsbws_datadir, caplog, parser):
dotsbws = empty_dotsbws_datadir
args = parser.parse_args(
'-d {} --log-level DEBUG cleanup'.format(dotsbws.name).split())
'-d {} --log-level debug cleanup'.format(dotsbws.name).split())
conf = get_config(args)
conf['general']['data_period'] = '1'
conf['cleanup']['stale_days'] = '5'
......@@ -78,7 +78,7 @@ def test_cleanup_small_rotten(empty_dotsbws_datadir, caplog, parser):
def test_cleanup_medium_stale(empty_dotsbws_datadir, caplog, parser):
dotsbws = empty_dotsbws_datadir
args = parser.parse_args(
'-d {} --log-level DEBUG cleanup'.format(dotsbws.name).split())
'-d {} --log-level debug cleanup'.format(dotsbws.name).split())
conf = get_config(args)
conf['general']['data_period'] = '10'
conf['cleanup']['stale_days'] = '19'
......@@ -94,7 +94,7 @@ def test_cleanup_only_compress_stale(time_mock, empty_dotsbws_datadir, caplog,
caplog.set_level(logging.DEBUG)
dotsbws = empty_dotsbws_datadir
args = parser.parse_args(
'-d {} --log-level DEBUG cleanup'.format(dotsbws.name).split())
'-d {} --log-level debug cleanup'.format(dotsbws.name).split())
conf = get_config(args)
conf['general']['data_period'] = '1'
conf['cleanup']['stale_days'] = '10'
......@@ -140,7 +140,7 @@ def test_cleanup_only_delete_rotten(time_mock, empty_dotsbws_datadir, caplog,
caplog.set_level(logging.DEBUG)
dotsbws = empty_dotsbws_datadir
args = parser.parse_args(
'-d {} --log-level DEBUG cleanup'.format(dotsbws.name).split())
'-d {} --log-level debug cleanup'.format(dotsbws.name).split())
conf = get_config(args)
conf['general']['data_period'] = '1'
conf['cleanup']['stale_days'] = '10'
......@@ -188,7 +188,7 @@ def test_cleanup_nothing_to_do(empty_dotsbws_datadir, caplog, parser):
caplog.set_level(logging.DEBUG)
dotsbws = empty_dotsbws_datadir
args = parser.parse_args(
'-d {} --log-level DEBUG cleanup'.format(dotsbws.name).split())
'-d {} --log-level debug cleanup'.format(dotsbws.name).split())
conf = get_config(args)
try:
sbws.core.cleanup.main(args, conf)
......@@ -203,7 +203,7 @@ def test_cleanup_compress_barely_stale(time_mock, empty_dotsbws_datadir,
caplog.set_level(logging.DEBUG)
dotsbws = empty_dotsbws_datadir
args = parser.parse_args(
'-d {} --log-level DEBUG cleanup'.format(dotsbws.name).split())
'-d {} --log-level debug cleanup'.format(dotsbws.name).split())
conf = get_config(args)
conf['general']['data_period'] = '1'
conf['cleanup']['stale_days'] = '10'
......@@ -239,7 +239,7 @@ def test_cleanup_delete_barely_rotten(time_mock, empty_dotsbws_datadir,
caplog.set_level(logging.DEBUG)
dotsbws = empty_dotsbws_datadir
args = parser.parse_args(
'-d {} --log-level DEBUG cleanup'.format(dotsbws.name).split())
'-d {} --log-level debug cleanup'.format(dotsbws.name).split())
conf = get_config(args)
conf['general']['data_period'] = '1'
conf['cleanup']['stale_days'] = '5'
......
......@@ -18,7 +18,7 @@ import logging
def init_directory(dname):
p = create_parser()
args = p.parse_args('-d {} --log-level DEBUG init'.format(dname).split())
args = p.parse_args('-d {} --log-level debug init'.format(dname).split())
conf = get_config(args)
sbws.core.init.main(args, conf)
......@@ -64,7 +64,7 @@ def test_stats_uninitted(tmpdir, caplog):
An un-initialized .sbws directory should fail hard and exit immediately
'''
p = create_parser()
args = p.parse_args('-d {} --log-level DEBUG stats'.format(tmpdir).split())
args = p.parse_args('-d {} --log-level debug stats'.format(tmpdir).split())
conf = get_config(args)
try:
sbws.core.stats.main(args, conf)
......@@ -83,7 +83,7 @@ def test_stats_initted(tmpdir, caplog):
'''
init_directory(tmpdir)
p = create_parser()
args = p.parse_args('-d {} --log-level DEBUG stats'.format(tmpdir).split())
args = p.parse_args('-d {} --log-level debug stats'.format(tmpdir).split())
conf = get_config(args)
try:
sbws.core.stats.main(args, conf)
......@@ -103,7 +103,7 @@ def test_stats_stale_result(tmpdir, caplog):
init_directory(tmpdir)
add_single_stale_result(tmpdir)
p = create_parser()
args = p.parse_args('-d {} --log-level DEBUG stats'.format(tmpdir).split())
args = p.parse_args('-d {} --log-level debug stats'.format(tmpdir).split())
conf = get_config(args)
sbws.core.stats.main(args, conf)
assert 'No fresh results' == caplog.records[-1].getMessage()
......@@ -121,7 +121,7 @@ def test_stats_fresh_result(tmpdir, capsys, caplog):
add_single_fresh_result(tmpdir)
p = create_parser()
args = p.parse_args(
'-d {} --log-level DEBUG stats --error-types'.format(tmpdir).split())
'-d {} --log-level debug stats --error-types'.format(tmpdir).split())
conf = get_config(args)
sbws.core.stats.main(args, conf)
captured = capsys.readouterr()
......@@ -158,7 +158,7 @@ def test_stats_fresh_results(time_mock, tmpdir, capsys, caplog):
add_two_fresh_results(tmpdir, start-1)
p = create_parser()
args = p.parse_args(
'-d {} --log-level DEBUG stats --error-types'.format(tmpdir).split())
'-d {} --log-level debug stats --error-types'.format(tmpdir).split())
conf = get_config(args)
sbws.core.stats.main(args, conf)
needed_output_lines = [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment