From d2cbe773c034d54fc12914a356acb3f41b818719 Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Wed, 17 Jul 2024 11:29:25 +0300 Subject: [PATCH] Fixes sanity tests (#10) The sanity tests are failing with the following error: exec /whereabouts version error: enter: cannot provide -v/--verbose before "exec" subcommand Pebble was recently updated, no longer allowing exec after --verbose (which is in the entrypoint). This fixes the sanity tests by using the --entrypoint docker run parameter. --- tests/sanity/test_whereabouts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/sanity/test_whereabouts.py b/tests/sanity/test_whereabouts.py index bd27735..30f6aaf 100644 --- a/tests/sanity/test_whereabouts.py +++ b/tests/sanity/test_whereabouts.py @@ -21,9 +21,10 @@ def _run_in_docker(image, check_exit_code, *command): "run", "--rm", "-i", + "--entrypoint", + command[0], image, - "exec", - *command, + *command[1:], ], check=check_exit_code, capture_output=True,