@@ -78,10 +78,10 @@ read -p "How many appwrapper jobs do you want?" jobs
78
78
# Start the timer now
79
79
SECONDS=0
80
80
81
- echo " jobs number is $jobs "
81
+ echo " Appwrapper number is $jobs "
82
82
export STARTTIME=` date +" %T" `
83
83
echo " "
84
- echo " Jobs started at: $STARTTIME " | tee job-$STARTTIME .log
84
+ echo " Appwrappers started at: $STARTTIME " | tee job-$STARTTIME .log
85
85
echo " "
86
86
87
87
# This fixes the number of jobs to be one less so the for loop gets the right amount
@@ -113,19 +113,19 @@ done
113
113
sed -i " s/defaultaw-schd-spec-with-timeout-$next_num /defaultaw-schd-spec-with-timeout-1/g" ${SCRIPT_DIR} /preempt-exp.yaml ;;
114
114
esac
115
115
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`
118
118
119
119
while [ $jobstatus -lt $jobs ]
120
120
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
122
122
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`
124
124
done
125
125
126
126
echo " "
127
127
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
129
129
echo " Total amount of time for $jobs appwrappers is: $SECONDS seconds" | tee -a ${SCRIPT_DIR} /job-$STARTTIME .log
130
130
echo " "
131
131
echo " Test results are stored in this file: ${SCRIPT_DIR} /job-$next_num -$STARTTIME .log"
0 commit comments