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

[Xen-devel] [PATCH OSSTEST 1/3] standalone: ensure log dir exists for all users of with_logging



By moving the check into that function. Previously at least make-flight was
failing to all ensure_logs

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 standalone | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/standalone b/standalone
index 0f491c1..b5eb9bc 100755
--- a/standalone
+++ b/standalone
@@ -135,6 +135,7 @@ ensure_logs() {
 
 with_logging() {
     local log=$1; shift
+    ensure_logs
     $@ 2>&1 | tee "$log"
     rc=${PIPESTATUS[0]}
     if [ $rc -ne 0 ] ; then
@@ -209,8 +210,6 @@ case $op in
 
        job=$1; shift
 
-       ensure_logs
-
         OSSTEST_CONFIG=$config \
        OSSTEST_FLIGHT=$flight \
        OSSTEST_HOST_HOST=$host \
@@ -228,8 +227,6 @@ case $op in
        job=$1; shift
        ts=$1; shift
 
-       ensure_logs
-
        OSSTEST_CONFIG=$config \
        OSSTEST_FLIGHT=$flight \
        OSSTEST_HOST_REUSE=$reuse \
-- 
1.9.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.