Skip to content

Commit

Permalink
Fix test_restore_ssl_directory with HA CLI in interactive PTY (#3239)
Browse files Browse the repository at this point in the history
The test was missing --no-progress flag, which only manifested after
merging #3238 - causing the CLI to run in an interactive pseudotty.

(cherry picked from commit 122dd1c)
  • Loading branch information
sairon committed Mar 12, 2024
1 parent 3dfd3a4 commit 32f1ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/supervisor_test/test_supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,6 @@ def test_restore_backup(shell_json, stash):

@pytest.mark.dependency(depends=["test_create_backup"])
def test_restore_ssl_directory(shell_json, stash):
result = shell_json(f"ha backups restore {stash.get('slug')} --folders ssl --raw-json")
result = shell_json(f"ha backups restore {stash.get('slug')} --folders ssl --no-progress --raw-json")
assert result.get("result") == "ok", f"Backup restore failed: {result}"
logger.info("Backup restore result: %s", result)

0 comments on commit 32f1ca8

Please sign in to comment.