11# This test file will be automatically run when you submit a pull request
22# You should not modify this file
33# You can run this file using ./test-sdc.sh task-directory-name to check your output
4- # You can use it with the individual-shell-tools, jq, and shell-pipelines tasks
54
6- echo " Results of test" > testoutput.txt
75echo " <!--CYFTT tag: sdc-test-results-->" > testoutput.txt
86echo " Results of test" >> testoutput.txt
97
@@ -24,11 +22,10 @@ if [[ "$1" == "individual-shell-tools" ]]; then
2422 if [ $? -eq 0 ]; then
2523 pass=$(( $pass + 1 ))
2624 else
27- if [[ " $exercise " == * " stretch" * ]]; then
28- # echo " Stretch task $directory$exercise failing, you can ignore this if you did not attempt. If you didnt, please have the volunteer check this. "
25+ if [[ " $exercise " == * " stretch" * && $( stat -c%s ../../test.tmp ) == " 0 " ]]; then
26+ # Stretch task not attempted, ignoring "
2927 total=$(( $total - 1 ))
3028 else
31- echo " Failed $directory$exercise , please either attempt again or have the volunteer check this." >> ../../testoutput.txt
3229 echo " Failed $directory$exercise , please check" >> ../../testoutput.txt
3330 fi
3431 fi
@@ -61,7 +58,6 @@ elif [[ "$1" == "shell-pipelines" ]]; then
6158 if [ $? -eq 0 ]; then
6259 pass=$(( $pass + 1 ))
6360 else
64- echo " Failed $directory$exercise , please either attempt again or have the volunteer check this." >> ../../testoutput.txt
6561 echo " Failed $directory$exercise , please check" >> ../../testoutput.txt
6662 fi
6763 done
@@ -91,7 +87,6 @@ elif [[ "$1" == "jq" ]]; then
9187 if [ $? -eq 0 ]; then
9288 pass=$(( $pass + 1 ))
9389 else
94- echo " Failed $directory$exercise , please either attempt again or have the volunteer check this." >> ../../testoutput.txt
9590 echo " Failed $directory$exercise , please check" >> ../../testoutput.txt
9691 fi
9792 done
@@ -125,7 +120,6 @@ elif [[ "$1" == "number-systems" ]]; then
125120 if [ $? -eq 0 ]; then
126121 pass=$(( $pass + 1 ))
127122 else
128- echo " Please try Q$question again, or have the volunteer check this." >> testoutput.txt
129123 echo " Q$question incorrect, please check" >> testoutput.txt
130124 fi
131125 rm answerfile
0 commit comments