Skip to content

Commit

Permalink
fixing jobs case
Browse files Browse the repository at this point in the history
Signed-off-by: James Busche <[email protected]>
  • Loading branch information
jbusche committed Oct 11, 2023
1 parent a77119f commit 5241052
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/perf-test/perf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ read -p "How many appwrapper jobs do you want?" JOBS
# Start the timer now
SECONDS=0

echo "Appwrapper number is $jobs"
echo "Appwrapper number is $JOBS"
export STARTTIME=`date +"%T"`
echo " "
echo "Appwrappers started at: $STARTTIME" |tee job-$STARTTIME.log
Expand Down Expand Up @@ -121,15 +121,15 @@ JOBSTATUS=`kubectl get appwrappers -o=custom-columns=SUCCESS:.status.Succeeded -

while [ $JOBSTATUS -lt $JOBS ]
do
echo "Number of completed appwrappers is: " $JOBSTATUS " and the goal is: " $jobs
echo "Number of completed appwrappers is: " $JOBSTATUS " and the goal is: " $JOBS
sleep 10
JOBSTATUS=`kubectl get appwrappers -o=custom-columns=SUCCESS:.status.Succeeded -n default |grep 1 |wc -l`
done

echo " "
export FINISHTIME=`date +"%T"`
echo "All $JOBSTATUS appwrappers finished: $FINISHTIME" |tee -a job-$STARTTIME.log
echo "Total amount of time for $jobs appwrappers is: $SECONDS seconds" |tee -a ${SCRIPT_DIR}/job-$STARTTIME.log
echo "Total amount of time for $JOBS appwrappers is: $SECONDS seconds" |tee -a ${SCRIPT_DIR}/job-$STARTTIME.log
echo " "
echo "Test results are stored in this file: ${SCRIPT_DIR}/job-$JOBS-$STARTTIME.log"

Expand Down

0 comments on commit 5241052

Please sign in to comment.