django: allow test.sh only for python3-django package

No idea how this worked before.
But the '/usr/bin/django-admin' is available only for python3-django

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean
2025-08-13 17:43:38 +03:00
committed by Alexandru Ardelean
parent 52620adeed
commit 12738a8eec

View File

@@ -1,5 +1,7 @@
#!/bin/sh
[ "python3-django" = "$1" ] || exit 0
GOT_VER=$(/usr/bin/django-admin version)
[ "$GOT_VER" = "$2" ] || {
echo "Incorrect version: expected '$2' ; obtained '$GOT_VER'"