[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] cat tests fails for http:// proto

From: Noorul Islam K M <noorul_at_collab.net>
Date: Thu, 10 Feb 2011 09:04:11 +0530

It looks like for file:// and http:// protocols cat prints different
warning messages for non-existing target.

For http://

svn: warning: W160013:
'/svn-test-work/repositories/cat_tests-9/!svn/bc/1/non-existing' path
not found

For file://

svn: warning: W160013: File not found: revision 1, path '/non-existing'

Log

[[[
For file:// and http:// protocols cat prints different warning messages
for non-existing target.

* subversion/tests/cmdline/cat_tests.py
  (cat_non_existing_remote_file): Modify regular expression to handle
    both http:// and file:// targets.

Patch by: Noorul Islam K M <noorul{_AT_}collab.net>
]]]

Thanks and Regards
Noorul

Index: subversion/tests/cmdline/cat_tests.py
===================================================================
--- subversion/tests/cmdline/cat_tests.py (revision 1069209)
+++ subversion/tests/cmdline/cat_tests.py (working copy)
@@ -238,8 +238,7 @@
   sbox.build(create_wc = False)
   non_existing_path = sbox.repo_url + '/non-existing'
   
- expected_err = "svn: warning: W160013: File not found.*" + \
- non_existing_path.split('/')[1]
+ expected_err = "svn: warning: W160013: .*not found.*"
 
   # cat operation on non-existing remote path should return 1
   svntest.actions.run_and_verify_svn2(None, None, expected_err, 1,
Received on 2011-02-10 04:34:57 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.