From 56bbcf7acbd787b1f9a18c97e094a949561ceee5 Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Thu, 27 Jul 2023 16:51:39 -0300 Subject: [PATCH] python-certifi: add github runtime test This loads the module, which should return the path of the CA bundle and verifies that the file exists. Signed-off-by: Eneas U de Queiroz (cherry picked from commit 219edcfa31ed2c55dc6bc4af049c92451157cf23) Signed-off-by: Jeffery To --- lang/python/python-certifi/test.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lang/python/python-certifi/test.sh diff --git a/lang/python/python-certifi/test.sh b/lang/python/python-certifi/test.sh new file mode 100644 index 0000000000..b2802165b3 --- /dev/null +++ b/lang/python/python-certifi/test.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +case "$1" in + *-src) + ;; + python3-certifi) + BUNDLE=$(python3 -m certifi) || { + echo "Failed to run the certfi module script. Exit status=$?." >&2 + echo "Output='$BUNDLE'" >&2 + exit 1 + } + ls -l "$BUNDLE" + ;; + *) + echo "Unexpected package '$1'" >&2 + exit 1 + ;; +esac -- 2.30.2