WIP: Make init test run with debug

This commit is contained in:
deajan 2025-07-01 12:59:22 +02:00
parent 0b530443db
commit 273a99ccc4

View file

@ -134,7 +134,8 @@ def test_npbackup_cli_show_config():
def test_npbackup_cli_init():
shutil.rmtree(repo_config.g("repo_uri"), ignore_errors=True)
sys.argv = ["", "-c", str(CONF_FILE), "--init", "--debug"]
os.environ["_DEBUG"] = True
sys.argv = ["", "-c", str(CONF_FILE), "--init"]
try:
with RedirectedStdout() as logs:
e = __main__.main()