From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [kvm-unit-tests PATCH] run_tests.sh: totally kill test.log Date: Tue, 16 Feb 2016 16:58:20 +0100 Message-ID: <56C3471C.4070700@redhat.com> References: <1455544837-21625-1-git-send-email-drjones@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: lvivier@redhat.com To: Andrew Jones , kvm@vger.kernel.org Return-path: Received: from mail-wm0-f47.google.com ([74.125.82.47]:33275 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751477AbcBPP6W (ORCPT ); Tue, 16 Feb 2016 10:58:22 -0500 Received: by mail-wm0-f47.google.com with SMTP id g62so197962047wme.0 for ; Tue, 16 Feb 2016 07:58:22 -0800 (PST) In-Reply-To: <1455544837-21625-1-git-send-email-drjones@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 15/02/2016 15:00, Andrew Jones wrote: > Just in case a user switches from root to non-root between runs, > make sure we completely recreate test.log to avoid permission > denied errors. > > Reported-by: Laurent Vivier > Signed-off-by: Andrew Jones > --- > run_tests.sh | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/run_tests.sh b/run_tests.sh > index 558b8e7431d8e..2c8af36b2726e 100755 > --- a/run_tests.sh > +++ b/run_tests.sh > @@ -48,5 +48,6 @@ done > > RUNTIME_arch_run="./$TEST_DIR/run >> test.log" > config=$TEST_DIR/unittests.cfg > +rm -f test.log > echo > test.log > for_each_unittest $config run > Will apply. Paolo