@@ -78,10 +78,10 @@ read -p "How many appwrapper jobs do you want?" jobs
7878# Start the timer now
7979SECONDS=0
8080
81- echo " jobs number is $jobs "
81+ echo " Appwrapper number is $jobs "
8282export STARTTIME=` date +" %T" `
8383echo " "
84- echo " Jobs started at: $STARTTIME " | tee job-$STARTTIME .log
84+ echo " Appwrappers started at: $STARTTIME " | tee job-$STARTTIME .log
8585echo " "
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
119119while [ $jobstatus -lt $jobs ]
120120do
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`
124124done
125125
126126echo " "
127127export 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
129129echo " Total amount of time for $jobs appwrappers is: $SECONDS seconds" | tee -a ${SCRIPT_DIR} /job-$STARTTIME .log
130130echo " "
131131echo " Test results are stored in this file: ${SCRIPT_DIR} /job-$next_num -$STARTTIME .log"
0 commit comments