Skip to content

Commit 627926b

Browse files
committed
Clean up output a little
1 parent f6f7b0a commit 627926b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test-sdc.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# You can run this file using ./test-sdc.sh task-directory-name to check your output
66

77
echo "<!--CYFTT tag: sdc-test-results-->" > testoutput.txt
8-
echo "Results of test" >> testoutput.txt
8+
echo "Results of test:" >> testoutput.txt
99

1010
if [[ "$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

0 commit comments

Comments
 (0)