Skip to content

Commit 91b76da

Browse files
jbuscheopenshift-ci[bot]
authored andcommitted
changing jobstatus from jobs to appwrappers
Signed-off-by: James Busche <[email protected]>
1 parent 93618fc commit 91b76da

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/perf-test/perf.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ read -p "How many appwrapper jobs do you want?" jobs
7878
# Start the timer now
7979
SECONDS=0
8080

81-
echo "jobs number is $jobs"
81+
echo "Appwrapper number is $jobs"
8282
export STARTTIME=`date +"%T"`
8383
echo " "
84-
echo "Jobs started at: $STARTTIME" |tee job-$STARTTIME.log
84+
echo "Appwrappers started at: $STARTTIME" |tee job-$STARTTIME.log
8585
echo " "
8686

8787
# This fixes the number of jobs to be one less so the for loop gets the right amount
@@ -113,19 +113,19 @@ done
113113
sed -i "s/defaultaw-schd-spec-with-timeout-$next_num/defaultaw-schd-spec-with-timeout-1/g" ${SCRIPT_DIR}/preempt-exp.yaml ;;
114114
esac
115115

116-
# Check for all jobs to report complete
117-
jobstatus=`kubectl get appwrappers -n default --no-headers --field-selector status.successful=1 |wc -l`
116+
# Check for all appwrappers to report complete
117+
jobstatus=`kubectl get appwrappers -o=custom-columns=SUCCESS:.status.Succeeded -n default |grep 1 |wc -l`
118118

119119
while [ $jobstatus -lt $jobs ]
120120
do
121-
echo "Number of completed jobs is: " $jobstatus " and the goal is: " $jobs
121+
echo "Number of completed appwrappers is: " $jobstatus " and the goal is: " $jobs
122122
sleep 10
123-
jobstatus=`kubectl get jobs -n default --no-headers --field-selector status.successful=1 |wc -l`
123+
jobstatus=`kubectl get appwrappers -o=custom-columns=SUCCESS:.status.Succeeded -n default |grep 1 |wc -l`
124124
done
125125

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

0 commit comments

Comments
 (0)