Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit216b1de

Browse files
committed
Make tests' output more verbose
1 parent9302958 commit216b1de

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

‎tests/filename_validity.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
OUTPUT="$(ls api/|egrep -v [0-9]{5}\.json)"
4-
if [${#OUTPUT}-ge 1 ]
5-
thenexit 1
4+
if [${#OUTPUT}-ge 1 ];then
5+
echo"The following filenames are invalid:$OUTPUT"
6+
exit 1
67
fi

‎tests/matching_count.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ FILE_LENGTH="$(wc -l zipcodes.csv |cut -d " " -f 4)"
44
FILE_LENGTH=$(($FILE_LENGTH-1))
55
DIR_COUNT="$(ls api/|wc -l)"
66

7-
if ["$FILE_LENGTH"-ne"$DIR_COUNT" ]
8-
thenexit 1
7+
if ["$FILE_LENGTH"-ne"$DIR_COUNT" ];then
8+
echo"There are$FILE_LENGTH CSV entries, but$DIR_COUNT JSON files."
9+
exit 1
910
fi

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp