From d00f9d053aa769141541b51d7fd8daa37b917647 Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Tue, 16 Jul 2024 21:29:29 +0000 Subject: [PATCH] Fixes sanity tests The sanity tests are failing with the following error: exec kubectl 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 045a6b1..afa8433 100644 --- a/tests/sanity/test_whereabouts.py +++ b/tests/sanity/test_whereabouts.py @@ -20,9 +20,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,