Philip Martin <philip.mar...@wandisco.com> writes: > Stefan Sperling <s...@elego.de> writes: > >>> + alpha = os.path.join(wc_dir, 'A/B/E/alpha') >>> + beta = os.path.join(wc_dir, 'A/B/E/beta') >> >> I think you need this here instead: >> alpha = os.path.join(wc_dir, 'A', 'B', 'E', alpha') >> beta = os.path.join(wc_dir, 'A', 'B', 'E', 'beta') >> >> Otherwise you'll get something like this on Windows: >> C:\foo\bar\wc_dir\A/B/E/alpha >> C:\foo\bar\wc_dir\A/B/E/beta > > Or: > > sbox.ospath('A/B/E/alpha') >
Incorporated. >>> + exit_code, output, error = svntest.main.run_svn(1, 'ls', alpha, >>> + non_existent_path, beta) >>> + >>> + # Verify error >>> + if not expected_err_re.match("".join(error)): >>> + raise svntest.Failure('Cat failed: expected error "%s", but received ' >>> + '"%s"' % (expected_err, "".join(error))) > > It should be possible to pass the regex into run_and_verify_svn. I tried but different combinations. At last I ended up with this. Thanks and Regards Noorul