python-awscli: fix stale assertion in test.sh
authorAlexandru Ardelean <redacted>
Sun, 7 Jun 2026 11:37:59 +0000 (14:37 +0300)
committerAlexandru Ardelean <redacted>
Tue, 9 Jun 2026 06:27:30 +0000 (09:27 +0300)
awscli 1.45.19 no longer exposes awscli.topics.TOPIC_TAGS, so the test
raised an AssertionError (silently, as the heredoc exit code was ignored).
Drop the brittle check and make the smoke test fail hard if the CLI driver
cannot be created.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-awscli/test.sh

index 3e0d324cba05d656e95543b5830e04997524e688..cf015ee6b6cb8fcae3d62227fd0f699389dfd2e9 100755 (executable)
@@ -2,16 +2,12 @@
 
 [ "$1" = python3-awscli ] || exit 0
 
-python3 - << 'EOF'
+python3 - << 'EOF' || exit 1
 from awscli.clidriver import create_clidriver
 
-# Verify CLI driver can be created
+# Verify the CLI driver can be created
 driver = create_clidriver()
 assert driver is not None
-
-# Verify help text is available for s3 command
-import awscli.topics
-assert hasattr(awscli.topics, "TOPIC_TAGS")
 EOF
 
 # Verify the aws binary runs --version
git clone https://git.99rst.org/PROJECT