Example #1
0
def test_debug_level():
    from hpobench.util.container_utils import enable_container_debug, disable_container_debug
    import os
    enable_container_debug()
    assert os.environ['HPOBENCH_DEBUG'] == 'true'

    disable_container_debug()
    assert os.environ['HPOBENCH_DEBUG'] == 'false'
Example #2
0
def enable_debug():
    enable_container_debug()
    yield
    disable_container_debug()