mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-10 23:15:37 +08:00
WIP: Make init test run with debug
This commit is contained in:
parent
0b530443db
commit
273a99ccc4
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue