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?
> +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