diff mbox series

[OSSTEST,2/4] standalone-generate-dump-flight-runvars: mkdir -p logs

Message ID 20200616165812.25380-2-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show
Series [OSSTEST,1/4] standalone: Fix spurious ] | expand

Commit Message

Ian Jackson June 16, 2020, 4:58 p.m. UTC
Otherwise if logs doesn't exist, the code in `standalone' which is
eventually called to build each flight will try to do it - but that
code is not idempotent in the presence of other racing copies of
itself.

Rather than trusting mkdir -p there, do it here.

No change other than to this dev-debugging script.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 standalone-generate-dump-flight-runvars | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/standalone-generate-dump-flight-runvars b/standalone-generate-dump-flight-runvars
index 3b893623..5c93b0af 100755
--- a/standalone-generate-dump-flight-runvars
+++ b/standalone-generate-dump-flight-runvars
@@ -53,6 +53,7 @@  if [ "x$AP_FETCH_PLACEHOLDERS" != xy ]; then
 	mkdir tmp/apmemo
     fi
     export AP_FETCH_PFX='./memoise tmp/apmemo'
+    mkdir -p logs
 fi
 
 # In the future it might be nice for this script to arrange to use a