Fix test scripts: ensure default distro and always run via bash

- Remove Makefile inline variable export (distro=arch) and invoke scripts via bash
- Add robust default in test-unit.sh and test-integration.sh:
    : "${distro:=arch}"
- Prevent "unbound variable" errors under `set -u` when no distro is provided
This commit is contained in:
kevinveenbirkenbach committed 2025-12-10 21:09:18 +01:00
1 parent 5a022db0db
commit 6d7ee6fc04
3 files changed
+6 -2

No files matched your search

+2
View File
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
: "${distro:=arch}"
echo "============================================================"
echo ">>> Running INTEGRATION tests in ${distro} container"
echo "============================================================"
+2
View File
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
: "${distro:=arch}"
echo "============================================================"
echo ">>> Running UNIT tests in ${distro} container"
echo "============================================================"