test: isolate scheduler-k3s registry tags per bats file

Parallel `unit.scheduler-k3s-*` matrix jobs all pushed to the same `savant/rdmtestapp:1` tag on Docker Hub, so a herokuish run pod could pull a CNB or dockerfile image that another job had just overwritten and fail with `exec: "/exec": stat /exec: no such file or directory`. The image-repo-template now embeds the bats file basename so each job owns its own tag namespace.
This commit is contained in:
Jose Diaz-Gonzalez
2026-05-12 11:43:58 -04:00
parent b32fb47e48
commit b30eb48444

View File

@@ -706,7 +706,10 @@ install_k3s() {
echo "status: $status" echo "status: $status"
assert_success assert_success
run /bin/bash -c "dokku registry:set --global image-repo-template '$DOCKERHUB_USERNAME/{{ .AppName }}'" local test_basename
test_basename="$(basename "$BATS_TEST_FILENAME" .bats)"
run /bin/bash -c "dokku registry:set --global image-repo-template '$DOCKERHUB_USERNAME/$test_basename-{{ .AppName }}'"
echo "output: $output" echo "output: $output"
echo "status: $status" echo "status: $status"
assert_success assert_success