Skip to content

Commit

Permalink
fix: Use correct api for waiting test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <[email protected]>
  • Loading branch information
JorTurFer committed Oct 30, 2023
1 parent 8e53efa commit 4475357
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/wait-test-case.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env bash

status=$(kubectl get k6 -n $1 k6-case -o jsonpath="{.status.stage}")
status=$(kubectl get testrun -n $1 k6-case -o jsonpath="{.status.stage}")
while [[ "$status" != "finished" &&
"$status" != "stopped" &&
"$status" != "error" ]]
do
echo "Test in progress, current status: $status"
sleep 30
status=$(kubectl get k6 -n $1 k6-case -o jsonpath="{.status.stage}")
status=$(kubectl get testrun -n $1 k6-case -o jsonpath="{.status.stage}")
done

echo "Test finished with status $status"

0 comments on commit 4475357

Please sign in to comment.