Skip to content

Commit 4b9072b

Browse files
committed
test.sh output
1 parent acf1ac9 commit 4b9072b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
pass() {
2+
echo
3+
echo "Running and expecting success: $@"
24
"$@"
35
if [ $? -ne 0 ]; then
46
echo "Command failed: $@"
57
exit 1
68
fi
79
}
810
fail() {
11+
echo
12+
echo "Running and expecting failure: $@"
913
"$@"
1014
if [ $? -eq 0 ]; then
1115
echo "Command succeeded when it should have failed: $@"
1216
exit 1
1317
fi
1418
}
1519
compare_json() {
20+
echo "Comparing $1 and $2"
1621
python3 test_compare_json.py $1 $2
1722
if [ $? -ne 0 ]; then
1823
echo "JSON Comparison failed"

0 commit comments

Comments
 (0)