File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55# You can run this file using ./test-sdc.sh task-directory-name to check your output
66
77echo " <!--CYFTT tag: sdc-test-results-->" > testoutput.txt
8- echo " Results of test" >> testoutput.txt
8+ echo " Results of test: " >> testoutput.txt
99
1010if [[ " $1 " == " individual-shell-tools" ]]; then
1111 cd individual-shell-tools
@@ -148,14 +148,14 @@ elif [[ "$1" == "implement-cowsay" ]]; then
148148 python3 implement-cowsay/cow.py Grass, delicious > test.tmp
149149 cmp test.tmp expect/implement-cowsay/cow-grass.txt
150150 if [ $? -ne 0 ]; then
151- echo " Unexpected cowsay output for Grass, delicious" >> testoutput.txt
151+ echo " Unexpected cowsay output for ' Grass, delicious'. " >> testoutput.txt
152152 all_ok=false
153153 fi
154154
155155 python3 implement-cowsay/cow.py --animal turtle " Fish are cool!" > test.tmp
156156 cmp test.tmp expect/implement-cowsay/turtle-fish.txt
157157 if [ $? -ne 0 ]; then
158- echo " Unexpected cowsay output for Fish are cool!" >> testoutput.txt
158+ echo " Unexpected cowsay output for --animal turtle Fish are cool!" >> testoutput.txt
159159 all_ok=false
160160 fi
161161
@@ -173,6 +173,7 @@ elif [[ "$1" == "implement-cowsay" ]]; then
173173
174174 if [[ " ${all_ok} " == " true" && -v GITHUB_OUTPUT ]]; then
175175 echo " complete=y" >> " $GITHUB_OUTPUT "
176+ echo " Your implementation passed all checks." >> testoutput.txt
176177 fi
177178 fi
178179 fi
You can’t perform that action at this time.
0 commit comments