File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ func TestTSDBStore_LabelNames(t *testing.T) {
7373 {
7474 title : "add another label" ,
7575 labels : []string {"bar" , "bar" },
76- // we will get two labels here
76+ // We will get two labels here.
7777 expectedNames : []string {"bar" , "foo" },
7878 },
7979 } {
Original file line number Diff line number Diff line change @@ -94,12 +94,15 @@ function check_comments {
9494 # option is used and a selected line is found.
9595 if test " 0" == " ${res} " # found something
9696 then
97- printf " \n\n\n Error: Found comments without trailing period. Comments has to be full sentences.\n\n\n."
97+ printf " \n\n\n Error: Found comments without trailing period. Comments has to be full sentences.\n\n\n"
98+ exit 1
9899 elif test " 1" == " ${res} " # nothing found, all clear
99100 then
100101 printf " \n\n\n All comment formatting is good, Spartan.\n\n\n"
102+ exit 0
101103 else # grep error
102104 printf " \n\n\n Hmmm something didn't work, issues with grep?.\n\n\n"
105+ exit 2
103106 fi
104107}
105108
You can’t perform that action at this time.
0 commit comments