WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH][XM-TEST] init xmtest report files

To: marvel@xxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH][XM-TEST] init xmtest report files
From: Dan Smith <danms@xxxxxxxxxx>
Date: Tue, 14 Mar 2006 15:59:13 -0800
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 15 Mar 2006 00:02:40 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1142380839.3602.9.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> (woody marvel's message of "Tue, 14 Mar 2006 16:00:39 -0800")
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1142380839.3602.9.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)
WM> Fix init of report file for runtest.sh

Good, this is definitely needed because people are accidentally
submitting duplicate results when they use the same logfile name with
runtest.sh multiple times.

> -       echo "*** case $casename from group $groupentered" >> $output
> +       echo "*** case $casename from group $groupentered" > $output
>         if [ -z "$testlist" ]; then
> -          echo "*** Running tests for case $casename" >> $output
> -          (cd tests/$casename && TEST_VERBOSE=1 make -k check) >> $output 
> 2>&1
> +          echo "*** Running tests for case $casename" > $output
> +          (cd tests/$casename && TEST_VERBOSE=1 make -k check) > $output 2>&1
>         else
> -          echo "*** Running tests $testlist from case $casename" >> $output
> -          (cd tests/$casename && TEST_VERBOSE=1 make -k check 
> TESTS="$testlist") >> $output 2>&1
> +          echo "*** Running tests $testlist from case $casename" > $output
> +          (cd tests/$casename && TEST_VERBOSE=1 make -k check 
> TESTS="$testlist") > $output 2>&1

By changing every one of the redirects to '>' instead of '>>', you
will clobber the output file each time, which means that only the last
test group will actually be reported in the log file!

How did this pass a sniff test?

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms@xxxxxxxxxx


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>