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

Re: svn commit: r1868561 - /subversion/trunk/subversion/tests/cmdline/diff_tests.py

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 17 Oct 2019 21:48:28 +0000

Good morning Nathan,

hartmannathan_at_apache.org wrote on Thu, Oct 17, 2019 at 16:23:21 -0000:
> +++ subversion/trunk/subversion/tests/cmdline/diff_tests.py Thu Oct 17 16:23:21 2019
> @@ -5253,6 +5253,83 @@ def diff_git_format_copy(sbox):
> +def diff_nonexistent_in_wc(sbox):
> + "nonexistent in working copy"
> +
> + sbox.build(empty=True)
> + wc_dir = sbox.wc_dir
> +
> + # We mirror the actions of the reproduction script (with one exception:
> + # we 'svn up -r 0' instead of checking out a second working copy)
> +
> + sbox.simple_add_text('test\n', 'file')
> + sbox.simple_commit()

If instead of using «echo test > file» you would use the existing file 'iota'
(see subversion/tests/README), you'd be able to pass read_only=True to
sbox.build(), which avoids some test suite overhead in setting a dedicated
repository for each test function — i.e., makes tests run half a millisecond faster. ☺

Cheers,

Daniel
Received on 2019-10-17 23:48:35 CEST

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.