Skip to content

Commit fd284ca

Browse files
committed
debug
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
1 parent 82b0ceb commit fd284ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/e2e/02-quantum-placement.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ wait_pod_phase sampler-mock Running 120 || fail "sampler-mock did not reach Runn
1111

1212
# fluence must have stamped the chosen backend annotation.
1313
backend="$(kubectl get pod sampler-mock -o jsonpath="{.metadata.annotations.${ANN//./\\.}}" 2>/dev/null || true)"
14-
[ -n "$backend" ] || fail "backend annotation ($ANN) was not set by fluence"
14+
[ -n "$backend" ] || (fail "backend annotation ($ANN) was not set by fluence" && show_webhook sampler-mock)
1515
log "fluence chose backend: $backend"
1616

1717
# The webhook must have surfaced it as QRMI_BACKEND inside the container.
1818
out="$(kubectl logs sampler-mock || true)"
1919
echo "$out" | grep -q "BACKEND=${backend}" \
20-
|| fail "QRMI_BACKEND in container ('$out') does not match annotation ($backend)" && show_webhook sampler-mock
20+
|| (fail "QRMI_BACKEND in container ('$out') does not match annotation ($backend)" && show_webhook sampler-mock)
2121

2222
log "PASS: qpu pod scheduled, backend '$backend' chosen and injected as QRMI_BACKEND"
2323
kubectl delete -f examples/test/e2e/quantum-pod-mock.yaml --wait=false || true

0 commit comments

Comments
 (0)