From cb5fe02ebdea6741551d73f0cdbaeec7cf0270f2 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 26 May 2022 11:18:46 -0700 Subject: [PATCH] Fix broken Bash completion end-to-end test. --- scripts/run-full-tests | 2 +- tests/end-to-end/test_completion.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run-full-tests b/scripts/run-full-tests index 920c845..a54e0ab 100755 --- a/scripts/run-full-tests +++ b/scripts/run-full-tests @@ -11,7 +11,7 @@ set -e apk add --no-cache python3 py3-pip borgbackup postgresql-client mariadb-client mongodb-tools \ - py3-ruamel.yaml py3-ruamel.yaml.clib + py3-ruamel.yaml py3-ruamel.yaml.clib bash # If certain dependencies of black are available in this version of Alpine, install them. apk add --no-cache py3-typed-ast py3-regex || true python3 -m pip install --no-cache --upgrade pip==22.0.3 setuptools==60.8.1 diff --git a/tests/end-to-end/test_completion.py b/tests/end-to-end/test_completion.py index 7975106..e4037ec 100644 --- a/tests/end-to-end/test_completion.py +++ b/tests/end-to-end/test_completion.py @@ -2,4 +2,4 @@ import subprocess def test_bash_completion_runs_without_error(): - subprocess.check_call('eval "$(borgmatic --bash-completion)"', shell=True) + subprocess.check_call('borgmatic --bash-completion | bash', shell=True)