Reducing the regular expression gets past this particular error. err =~ %r{^svn: warning: W160013:} # file does not exist error
How specific do we want to make this test? Thanks, Craig > On Jul 9, 2020, at 10:03 AM, Craig Russell <apache....@gmail.com> wrote: > > Hi Sebb, > > Maybe the regular expression is too strict or doesn't cover all the cases. > The code expects not only to get an error but a very specific kind of error. > > # Need to check for unexpected errors; the error message does not > include the full repo URL > unless err =~ > %r{^svn: warning: W160013: Path '.+#{filename}' not found} > throw RuntimeError.new("#{filename} already exists! #{err}") > > Could you tell a bit more about what you are checking for here? > > Thanks, > Craig > >> On Jul 8, 2020, at 4:00 PM, Craig Russell <apache....@gmail.com >> <mailto:apache....@gmail.com>> wrote: >> >> svn: warning: W160013: URL >> 'https://svn.apache.org/repos/private/documents/emeritus-requests-received/clr.txt >> >> <https://svn.apache.org/repos/private/documents/emeritus-requests-received/clr.txt>' >> non-existent in revision 98098\nsvn: E200009: Could not list all targets >> because some targets don't exist\n > > Craig L Russell > c...@apache.org <mailto:c...@apache.org> > Craig L Russell c...@apache.org