diff mbox

[kvm-unit-tests] run_tests.sh: totally kill test.log

Message ID 1455544837-21625-1-git-send-email-drjones@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andrew Jones Feb. 15, 2016, 2 p.m. UTC
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(+)

Comments

Paolo Bonzini Feb. 16, 2016, 3:58 p.m. UTC | #1
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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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