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

Re: [PATCH] Test case for issue 3713

From: Julian Foad <julian.foad_at_wandisco.com>
Date: Thu, 11 Nov 2010 10:15:04 +0000

On Thu, 2010-11-11, Noorul Islam K M wrote:
> New test case for issue 3713
> svn cat for non-existing file returns incorrect exit-status.
>
> * subversion/tests/cmdline/cat_tests.py
> (cat_non_existing_path): New test
> (test_list): New XFail test

Thanks, Noorul. Although the issue mentions one specific example of a
non-existing file, it would be good to check some other common
possibilities at the same time. Would you mind extending the test (or
tests) to also check any other cases you can think of, but at least a
target that is a directory and URLs as well as local paths?

Thanks.
- Julian

> +def cat_non_existing_path(sbox):
> + """cat non exising path"""
> + sbox.build(create_wc = False)
> + wc_dir = sbox.wc_dir
> + non_existing_path = os.path.join(wc_dir, 'non-existing')
> +
> + expected_err = "svn: warning: '.*" + non_existing_path + "'" + \
> + " is not under version control\n"
>
> + # cat operation on non-existing path should return 1
> + svntest.actions.run_and_verify_svn2(None, None, expected_err, 1,
> + 'cat', non_existing_path)
Received on 2010-11-11 11:15:48 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.