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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
Signed-off-by: Andrew Jones <drjones@xxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux