mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 21:20:21 +04:00
5a31bfb4e4
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 <alex@shruggie.ro>
18 lines
384 B
Bash
Executable File
18 lines
384 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ "$1" = python3-awscli ] || exit 0
|
|
|
|
python3 - << 'EOF' || exit 1
|
|
from awscli.clidriver import create_clidriver
|
|
|
|
# Verify the CLI driver can be created
|
|
driver = create_clidriver()
|
|
assert driver is not None
|
|
EOF
|
|
|
|
# Verify the aws binary runs --version
|
|
aws --version 2>&1 | grep -q "aws-cli" || {
|
|
echo "ERROR: 'aws --version' did not produce expected output"
|
|
exit 1
|
|
}
|