From 1a3ae8cdd87f608ce79e1fcd7a29bb68d3cd4856 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 10 Feb 2021 10:05:07 +1100 Subject: [PATCH] borg testing: catch stdout and stderr from test prune correctly Change-Id: I783b319c9395b8bfabec8f8670d0cbc1419f5e1e --- testinfra/test_borg_backups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testinfra/test_borg_backups.py b/testinfra/test_borg_backups.py index e2ff602d12..683b5c85c9 100644 --- a/testinfra/test_borg_backups.py +++ b/testinfra/test_borg_backups.py @@ -94,5 +94,5 @@ def test_borg_server_prune(host): if hostname.startswith('borg-backup-test'): pytest.skip() - cmd = host.run('echo "prune" | /usr/local/bin/prune-borg-backups 2>&1 > /var/log/prune-borg-backups.log') + cmd = host.run('echo "prune" | /usr/local/bin/prune-borg-backups &> /var/log/prune-borg-backups.log') assert cmd.succeeded