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

Re: 1.7.1 up for testing / signing

From: rupert THURNER <rupert.thurner_at_gmail.com>
Date: Sun, 18 Dec 2011 14:39:04 +0100

On Sun, Dec 18, 2011 at 13:08, Stefan Sperling <stsp_at_elego.de> wrote:

> On Sun, Dec 18, 2011 at 12:52:25PM +0100, rupert THURNER wrote:
> > On Sun, Dec 18, 2011 at 12:17, Stefan Sperling <stsp_at_elego.de> wrote:
> > > On Sun, Dec 18, 2011 at 02:35:39AM -0800, rupert.thurner wrote:
> > > > rupert @ unstable9s : ~/mgar-sav/pkg/subversion/trunk/work/solaris9-
> > > > sparc/build-isa-sparcv8/subversion-1.7.2/subversion/tests/cmdline
> > > > $ ./copy_tests.py 86 --verbose
> > >
> > > > PASS: copy_tests.py 86: changed dir after commit should match
> > > > checkout
> > >
> > > So this time, it passed. This is probably just a race condition in the
> > > test where it might not succeed if timestamps on disk aren't updated
> > > quickly enough. Can you get it to fail again by running it a couple
> > > of times?
> > >
> > > I think you can safely ignore this failure.
> > >
> >
> > every time i run it with the test suite it fails. from java i know that
> the
> > timestamps on solaris are 4 digits less accurate than on windows. can
> this
> > be an issue here as well?
>
> Yes, certainly.
>
> Does this patch help?
>
> Index: copy_tests.py
> ===================================================================
> --- copy_tests.py (revision 1214870)
> +++ copy_tests.py (working copy)
> @@ -25,7 +25,7 @@
> ######################################################################
>
> # General modules
> -import stat, os, re, shutil
> +import stat, os, re, shutil, time
>
> # Our testing module
> import svntest
> @@ -4647,6 +4647,8 @@ def changed_dir_data_should_match_checkout(sbox):
>
> svntest.actions.run_and_verify_svn(None, None, [], 'co', sbox.repo_url,
> verify_dir)
>
> + time.sleep(1.1) # sleep for timestamps
> +
> was_cwd = os.getcwd()
> os.chdir(verify_dir)
>
>
it passed the first time, and then i always get an error - but i suppose
this is unrelated?

DIFF STDOUT:
--- EXPECTED STDOUT
+++ ACTUAL STDOUT
@@ -1,12 +1,12 @@
                  2 2 jrandom .
                  2 1 jrandom A
+ 2 1 jrandom A/mu
                  2 1 jrandom A/B
                  2 1 jrandom A/B/lambda
                  2 1 jrandom A/B/E
                  2 1 jrandom A/B/E/alpha
                  2 1 jrandom A/B/E/beta
                  2 1 jrandom A/B/F
- 2 1 jrandom A/mu
                  2 1 jrandom A/C
                  2 1 jrandom A/D
                  2 1 jrandom A/D/gamma
CWD:
/home/rupert/mgar-sav/pkg/subversion/trunk/work/solaris9-i386/build-isa-i386/subversion-1.7.2/subversion/tests/cmdline/svn-test-work/working_copies/copy_tests-86
EXCEPTION: SVNLineUnequal
Traceback (most recent call last):
  File
"/home/rupert/mgar-sav/pkg/subversion/trunk/work/solaris9-i386/build-isa-i386/subversion-1.7.2/subversion/tests/cmdline/svntest/main.py",
line 1316, in run
    rc = self.pred.run(sandbox)
  File
"/home/rupert/mgar-sav/pkg/subversion/trunk/work/solaris9-i386/build-isa-i386/subversion-1.7.2/subversion/tests/cmdline/svntest/testcase.py",
line 176, in run
    return self.func(sandbox)
  File "./copy_tests.py", line 4659, in
changed_dir_data_should_match_checkout
    svntest.actions.run_and_verify_svn(None, verify_out, [], 'status', '-v')
  File
"/home/rupert/mgar-sav/pkg/subversion/trunk/work/solaris9-i386/build-isa-i386/subversion-1.7.2/subversion/tests/cmdline/svntest/actions.py",
line 268, in run_and_verify_svn
    expected_exit, *varargs)
  File
"/home/rupert/mgar-sav/pkg/subversion/trunk/work/solaris9-i386/build-isa-i386/subversion-1.7.2/subversion/tests/cmdline/svntest/actions.py",
line 307, in run_and_verify_svn2
    verify.verify_outputs(message, out, err, expected_stdout,
expected_stderr)
  File
"/home/rupert/mgar-sav/pkg/subversion/trunk/work/solaris9-i386/build-isa-i386/subversion-1.7.2/subversion/tests/cmdline/svntest/verify.py",
line 388, in verify_outputs
    compare_and_display_lines(message, label, expected, actual, raisable)
  File
"/home/rupert/mgar-sav/pkg/subversion/trunk/work/solaris9-i386/build-isa-i386/subversion-1.7.2/subversion/tests/cmdline/svntest/verify.py",
line 361, in compare_and_display_lines
    raise raisable
SVNLineUnequal
FAIL: copy_tests.py 86: changed dir after commit should match checkout
Received on 2011-12-18 14:39: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.