All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH] run_tests.sh: totally kill test.log
@ 2016-02-15 14:00 Andrew Jones
  2016-02-16 15:58 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Jones @ 2016-02-15 14:00 UTC (permalink / raw)
  To: kvm; +Cc: lvivier, pbonzini

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 <lvivier@redhat.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>
---
 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
-- 
2.4.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [kvm-unit-tests PATCH] run_tests.sh: totally kill test.log
  2016-02-15 14:00 [kvm-unit-tests PATCH] run_tests.sh: totally kill test.log Andrew Jones
@ 2016-02-16 15:58 ` Paolo Bonzini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2016-02-16 15:58 UTC (permalink / raw)
  To: Andrew Jones, kvm; +Cc: lvivier



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 <lvivier@redhat.com>
> Signed-off-by: Andrew Jones <drjones@redhat.com>
> ---
>  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-16 15:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-15 14:00 [kvm-unit-tests PATCH] run_tests.sh: totally kill test.log Andrew Jones
2016-02-16 15:58 ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.