Return-Path: X-Original-To: apmail-subversion-dev-archive@minotaur.apache.org Delivered-To: apmail-subversion-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 24EA17925 for ; Tue, 4 Oct 2011 19:01:22 +0000 (UTC) Received: (qmail 94957 invoked by uid 500); 4 Oct 2011 19:01:21 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 94920 invoked by uid 500); 4 Oct 2011 19:01:21 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 94909 invoked by uid 99); 4 Oct 2011 19:01:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 19:01:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 74.125.82.171 is neither permitted nor denied by domain of codematters@ntlworld.com) Received: from [74.125.82.171] (HELO mail-wy0-f171.google.com) (74.125.82.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 19:01:13 +0000 Received: by wyh13 with SMTP id 13so1384695wyh.16 for ; Tue, 04 Oct 2011 12:00:53 -0700 (PDT) Received: by 10.216.229.141 with SMTP id h13mr5139486weq.100.1317754853337; Tue, 04 Oct 2011 12:00:53 -0700 (PDT) Received: from (know-mailgateway-3.server.virginmedia.net. [62.254.26.105]) by mx.google.com with ESMTPS id n21sm5907273wbp.2.2011.10.04.12.00.50 (version=SSLv3 cipher=OTHER); Tue, 04 Oct 2011 12:00:52 -0700 (PDT) Sender: MARTIN PHILIP Received: from source ([86.16.124.205]) by smtp.virginmedia.com with SMTP; Tue, 04 Oct 2011 19:00:52 +0000 (GMT) X-ProxyUser-IP: 86.16.124.205 Received: by cpc2-farn6-0-0-cust204.6-2.cable.virginmedia.com (Postfix, from userid 1000) id 7A076361A3; Tue, 4 Oct 2011 20:00:49 +0100 (BST) From: Philip Martin To: dev@subversion.apache.org Subject: svnadmin_tests.py 24 and svntest.verify.UnorderedRegexOutput Date: Tue, 04 Oct 2011 20:00:49 +0100 Message-ID: <87pqica8f2.fsf@stat.home.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org We had a buildbot failure: http://ci.apache.org/builders/bb-openbsd/builds/170 The test locks two files, runs 'svnadmin lslocks' and checks the output using: expected_output = svntest.verify.UnorderedRegexOutput([ "Path: /A/B/lambda", "UUID Token: opaquelocktoken", "Owner: jrandom", "Created:", "Expires:", "Comment \(1 line\):", "Locking files", "Path: /iota", "UUID Token: opaquelocktoken.*", "\n", # empty line ]) The "Created:" lines in the svnadmin output include a timestamp and the test passes when the two locks have the same timestamp, but occassionally the timestamps differ by one second and the test fails. This seems to be a problem with our regexp matching. The output has two identical "Owner" lines and the one "Owner" line in UnorderedRegexOutput will match both. The output has two different "UUID" lines and we have two "UUID" lines in UnorderedRegexOutput, and although either would match both lines in the output we need to have both "UUID" lines in UnorderedRegexOutput or the test fails. A line in UnorderedRegexOutput will match multiple lines in the output provided the output lines match, but where different output lines match it will only match one of them. So it seems we need one "Created:" line in UnorderedRegexOutput when the two timestamps are the same, but two lines when the timestamps differ. Are we misusing UnorderedRegexOutput? How do we fix the test? -- uberSVN: Apache Subversion Made Easy http://www.uberSVN.com