@@ -124,14 +124,14 @@ like $cp->run('-c=2h'), qr{^$label OK: DB "postgres"},
124124 " $S -c=2h returns ok with failed job before our time" ;
125125
126126like $cp -> run(' -c=6h' ),
127- qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!} ,
127+ qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF! } ,
128128 " $S -c=6h returns critical with failed job within our time" ;
129129
130130like $cp -> run(' -w=2h' ), qr { ^$label OK: DB "postgres"} ,
131131 " $S -w=2h returns ok with failed job before our time" ;
132132
133133like $cp -> run(' -w=6h' ),
134- qr { ^$label WARNING: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!} ,
134+ qr { ^$label WARNING: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF! } ,
135135 " $S -w=6h returns warninf with failed job within our time" ;
136136
137137like $cp -> run(' -w=2h' ), qr { ^$label OK: DB "postgres"} ,
@@ -141,15 +141,15 @@ like $cp->run('-w=4h -c=2h'), qr{^$label OK: DB "postgres"},
141141 " $S -w=4h =c=2h returns ok with failed job before our time" ;
142142
143143like $cp -> run(' -w=5h -c=2h' ),
144- qr { ^$label WARNING: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!} ,
144+ qr { ^$label WARNING: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF! } ,
145145 " $S -w=5h =c=2h returns warning with failed job within our time" ;
146146
147147like $cp -> run(' -w=2h -c=5h' ),
148- qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!} ,
148+ qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF! } ,
149149 " $S -w=2h =c=5h returns critical with failed job within our time" ;
150150
151151like $cp -> run(' -w=5h -c=5h' ),
152- qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!} ,
152+ qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF! } ,
153153 " $S -w=5h =c=5h returns critical with failed job within our time" ;
154154
155155# Make a second job fail, back 30 hours.
@@ -165,14 +165,14 @@ like $cp->run('-c=2h'), qr{^$label OK: DB "postgres"},
165165 " $S -c=2h returns ok with failed job before our time" ;
166166
167167like $cp -> run(' -c=6h' ),
168- qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!} ,
168+ qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF! } ,
169169 " $S -c=6h returns critical with failed job within our time" ;
170170
171171like $cp -> run(' -w=2h' ), qr { ^$label OK: DB "postgres"} ,
172172 " $S -w=2h returns ok with failed job before our time" ;
173173
174174like $cp -> run(' -w=6h' ),
175- qr { ^$label WARNING: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!} ,
175+ qr { ^$label WARNING: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF! } ,
176176 " $S -w=6h returns warninf with failed job within our time" ;
177177
178178like $cp -> run(' -w=2h' ), qr { ^$label OK: DB "postgres"} ,
@@ -182,42 +182,42 @@ like $cp->run('-w=4h -c=2h'), qr{^$label OK: DB "postgres"},
182182 " $S -w=4h =c=2h returns ok with failed job before our time" ;
183183
184184like $cp -> run(' -w=5h -c=2h' ),
185- qr { ^$label WARNING: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!} ,
185+ qr { ^$label WARNING: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF! } ,
186186 " $S -w=5h =c=2h returns warning with failed job within our time" ;
187187
188188like $cp -> run(' -w=2h -c=5h' ),
189- qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!} ,
189+ qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF! } ,
190190 " $S -w=2h =c=5h returns critical with failed job within our time" ;
191191
192192like $cp -> run(' -w=5h -c=5h' ),
193- qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!} ,
193+ qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF! } ,
194194 " $S -w=5h -c=5h returns critical with failed job within our time" ;
195195
196196# Go back further in time!
197197like $cp -> run(' -w=30h -c=2h' ),
198- qr { ^$label WARNING: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!} ,
199- " $S -w=30h -c=5h returns warning for older failed job" ;
198+ qr { ^$label WARNING: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!; 64 Restore/analyze: OMGWTFLOL! } ,
199+ " $S -w=30h -c=2h returns warning for older failed job" ;
200200
201201like $cp -> run(' -w=30h -c=6h' ),
202- qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!; 64 Restore/analyze: OMGWTFLOL!} ,
202+ qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!; 64 Restore/analyze: OMGWTFLOL! } ,
203203 " $S -w=30h -c=6h returns critical with both jobs, more recent critical" ;
204204
205205like $cp -> run(' -c=30h' ),
206- qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!; 64 Restore/analyze: OMGWTFLOL!} ,
206+ qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!; 64 Restore/analyze: OMGWTFLOL! } ,
207207 " $S -c=30h returns critical with both failed jobs" ;
208208
209209like $cp -> run(' -w=30h' ),
210- qr { ^$label WARNING: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!; 64 Restore/analyze: OMGWTFLOL!} ,
210+ qr { ^$label WARNING: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!; 64 Restore/analyze: OMGWTFLOL! } ,
211211 " $S -w=30h returns critical with both failed jobs" ;
212212
213213# Try with critical recent and warning longer ago.
214214like $cp -> run(' -w=30h -c=6h' ),
215- qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!; 64 Restore/analyze: OMGWTFLOL!} ,
215+ qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!; 64 Restore/analyze: OMGWTFLOL! } ,
216216 " $S -w=30h -c=6h returns critical with both failed jobs" ;
217217
218218# Try with warning recent and critical longer ago.
219219like $cp -> run(' -c=30h -w=6h' ),
220- qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!; 64 Restore/analyze: OMGWTFLOL!} ,
220+ qr { ^$label CRITICAL: DB "postgres" [()][^)]+[)] 255 Restore/analyze: WTF!; 64 Restore/analyze: OMGWTFLOL! } ,
221221 " $S -c=30h -w=6h returns critical with both failed jobs" ;
222222
223223# Undo the more recent failure.
0 commit comments